修复了当表字段类型为datetime或者time并且默认为NULL时,在结构中没有被设置成指针类型的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user