fix(database/gdb): recognize tinyint(1)/int(1) as bool (#3943)

This commit is contained in:
John Guo
2024-11-20 20:21:33 +08:00
committed by GitHub
parent 0d1aed0741
commit 3090fe7f4e

View File

@ -259,10 +259,6 @@ func (c *Core) CheckLocalTypeForField(ctx context.Context, fieldType string, fie
if gstr.ContainsI(fieldType, "unsigned") {
return LocalTypeUint, nil
}
// field length is 1 means boolean.
if typePattern == "1" {
return LocalTypeBool, nil
}
return LocalTypeInt, nil
case