mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
up
This commit is contained in:
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user