diff --git a/database/gdb/gdb_core_structure.go b/database/gdb/gdb_core_structure.go index 65b385a02..a954e03f9 100644 --- a/database/gdb/gdb_core_structure.go +++ b/database/gdb/gdb_core_structure.go @@ -236,9 +236,9 @@ func (c *Core) CheckLocalTypeForField(ctx context.Context, fieldType string, _ i typePattern = gstr.Trim(match[2]) } else { var array = gstr.SplitAndTrim(fieldType, " ") - if gstr.Equal(array[0], "unsigned") { + if len(array) > 1 && gstr.Equal(array[0], "unsigned") { typeName = array[1] - } else { + } else if len(array) > 0 { typeName = array[0] } }