diff --git a/generate/g_appcode.go b/generate/g_appcode.go index 9a38727..a3d7118 100644 --- a/generate/g_appcode.go +++ b/generate/g_appcode.go @@ -925,7 +925,7 @@ func extractColSize(colType string) string { } func extractIntSignness(colType string) string { - regex := regexp.MustCompile(`(int|smallint|mediumint|bigint)\([0-9]+\)(.*)`) + regex := regexp.MustCompile(`(int|smallint|mediumint|bigint).*`) signRegex := regex.FindStringSubmatch(colType) return strings.Trim(signRegex[2], " ") }