Skip to content

Commit

Permalink
fix(database/gdb): recognize tinyint(1)/int(1) as bool (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn authored Nov 20, 2024
1 parent 0d1aed0 commit 3090fe7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions database/gdb/gdb_core_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3090fe7

Please sign in to comment.