This commit is contained in:
chenli 2020-12-02 23:02:26 +08:00
parent 1653a01eaa
commit 32230de2ea
1 changed files with 1 additions and 1 deletions

View File

@ -925,7 +925,7 @@ func extractColSize(colType string) string {
} }
func extractIntSignness(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) signRegex := regex.FindStringSubmatch(colType)
return strings.Trim(signRegex[2], " ") return strings.Trim(signRegex[2], " ")
} }