fix null.Int64 when it is signed

This commit is contained in:
ceshihao 2017-08-03 18:19:35 +08:00 committed by GitHub
parent 9dd03ac6a8
commit f0f386e97b

View file

@ -306,7 +306,7 @@ func (m *MySQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
if unsigned {
c.Type = "null.Uint64"
} else {
c.Type = "null.Uint64"
c.Type = "null.Int64"
}
case "float":
c.Type = "null.Float32"