diff --git a/database/gdb/gdb_func_structure.go b/database/gdb/gdb_func_structure.go index f422a459c..f3b4f8468 100644 --- a/database/gdb/gdb_func_structure.go +++ b/database/gdb/gdb_func_structure.go @@ -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 }