Merge pull request #185 from jiang4869/master

修复了当表字段类型为datetime或者time并且默认为NULL时,在结构中没有被设置成指针类型的问题
master
xxj 3 years ago committed by GitHub
commit 2497b94082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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