mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix(database/gdb): recognize tinyint(1)/int(1) as bool (#3943)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user