This commit is contained in:
chenli 2020-12-03 22:01:24 +08:00
parent 32230de2ea
commit e3e1a9849f
1 changed files with 1 additions and 1 deletions

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) {