mirror of
https://gitee.com/johng/gf.git
synced 2024-12-01 19:57:40 +08:00
parent
6172862061
commit
9df0a9da0a
@ -65,9 +65,6 @@ func CheckValueForLocalType(ctx context.Context, fieldType string, fieldValue in
|
||||
"medium_int",
|
||||
"mediumint",
|
||||
"serial":
|
||||
if typePattern == "1" {
|
||||
return typeBool, nil
|
||||
}
|
||||
if gstr.ContainsI(fieldType, "unsigned") {
|
||||
return typeUint, nil
|
||||
}
|
||||
@ -101,6 +98,7 @@ func CheckValueForLocalType(ctx context.Context, fieldType string, fieldValue in
|
||||
return typeFloat64, nil
|
||||
|
||||
case "bit":
|
||||
// It is suggested using bit(1) as boolean.
|
||||
if typePattern == "1" {
|
||||
return typeBool, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user