mirror of
https://github.com/beego/bee.git
synced 2024-12-24 23:30:48 +00:00
fix issues #730
This commit is contained in:
parent
1653a01eaa
commit
32230de2ea
@ -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…
Reference in New Issue
Block a user