From 3090fe7f4e6b97ae2590075126d090aeb0b93b9c Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 20 Nov 2024 20:21:33 +0800 Subject: [PATCH] fix(database/gdb): recognize `tinyint(1)/int(1)` as bool (#3943) --- database/gdb/gdb_core_structure.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/database/gdb/gdb_core_structure.go b/database/gdb/gdb_core_structure.go index 8a4c11927..bbb9df757 100644 --- a/database/gdb/gdb_core_structure.go +++ b/database/gdb/gdb_core_structure.go @@ -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