mirror of
https://github.com/beego/bee.git
synced 2024-11-21 13:40:53 +00:00
fix
This commit is contained in:
parent
32230de2ea
commit
e3e1a9849f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user