1
0
mirror of https://github.com/beego/bee.git synced 2024-12-24 23:30:48 +00:00
This commit is contained in:
chenli 2020-12-02 23:02:26 +08:00
parent 1653a01eaa
commit 32230de2ea

View File

@ -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], " ")
}