From 185316c5c1bd8a5417818870658f140e90f91f6e Mon Sep 17 00:00:00 2001 From: John Guo Date: Thu, 9 Jan 2025 14:21:45 +0800 Subject: [PATCH] up --- database/gdb/gdb_core_structure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] } }