Browse Source

fix issues #730

pull/743/head
chenli 8 months ago
parent
commit
32230de2ea
  1. 2
      generate/g_appcode.go

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

Loading…
Cancel
Save