From 43521077c363e6ffb737c0eaf569dbd2441fcd4e Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 20 Nov 2024 16:47:26 +0800 Subject: [PATCH] fix(database/gdb): recognize tinyint(1)/int(1) as bool --- 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 8a4c1192740..bbb9df7574c 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