1
0
mirror of https://github.com/beego/bee.git synced 2024-05-28 17:33:29 +00:00
This commit is contained in:
chenli 2020-12-03 22:01:24 +08:00
parent 32230de2ea
commit e3e1a9849f

View File

@ -927,7 +927,7 @@ func extractColSize(colType string) string {
func extractIntSignness(colType string) string {
regex := regexp.MustCompile(`(int|smallint|mediumint|bigint).*`)
signRegex := regex.FindStringSubmatch(colType)
return strings.Trim(signRegex[2], " ")
return strings.Trim(signRegex[1], " ")
}
func extractDecimal(colType string) (digits string, decimals string) {