修复了当表字段类型为datetime或者time并且默认为NULL时,在结构中没有被设置成指针类型的问题

master
jiang4869 3 years ago
parent dff30a5651
commit d371cfed63

@ -100,6 +100,9 @@ func fixNullToPorint(name string, isNull bool) string {
if strings.HasPrefix(name, "float") {
return "*" + name
}
if strings.HasPrefix(name, "time") {
return "*" + name
}
}
return name

Loading…
Cancel
Save