From 32230de2eaf92cd05a34a05a10474eca853b20ec Mon Sep 17 00:00:00 2001 From: chenli <1920853199@qq.com> Date: Wed, 2 Dec 2020 23:02:26 +0800 Subject: [PATCH] fix issues #730 --- generate/g_appcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], " ") }