This commit is contained in:
John Guo 2022-07-28 10:11:15 +08:00 committed by GitHub
parent 6172862061
commit 9df0a9da0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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