Skip to content

Commit 50e6795

Browse files
committed
fix for enum and set field type to column type conversion
1 parent 98d7289 commit 50e6795

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fields.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ func (mf *mysqlField) typeDatabaseName() string {
7777
}
7878
return "SMALLINT"
7979
case fieldTypeString:
80+
if mf.flags&flagEnum != 0 {
81+
return "ENUM"
82+
} else if mf.flags&flagSet != 0 {
83+
return "SET"
84+
}
8085
if mf.charSet == binaryCollationID {
8186
return "BINARY"
8287
}

0 commit comments

Comments
 (0)