Skip to content

Commit

Permalink
Update def.go
Browse files Browse the repository at this point in the history
	`^(float)[(]\d+,\d+[)]`:          "float64",
	`^(float)[(]\d+,\d+[)] unsigned`: "float64",

One of these two lines of code doesn't work

我在这四行代码加了$. 这样就可以避免其它bug。
  • Loading branch information
bingbingtea authored Sep 22, 2020
1 parent 36b6de2 commit 6c7b80d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ var TypeMysqlMatchMp = map[string]string{
`^(smallint)[(]\d+[)] unsigned`: "uint16",
`^(int)[(]\d+[)] unsigned`: "uint32",
`^(bigint)[(]\d+[)] unsigned`: "uint64",
`^(tinyint)[(]\d+[)]`: "int8",
`^(smallint)[(]\d+[)]`: "int16",
`^(int)[(]\d+[)]`: "int",
`^(bigint)[(]\d+[)]`: "int64",
`^(tinyint)[(]\d+[)]$`: "int8",
`^(smallint)[(]\d+[)]$`: "int16",
`^(int)[(]\d+[)]$`: "int",
`^(bigint)[(]\d+[)]$`: "int64",
`^(char)[(]\d+[)]`: "string",
`^(enum)[(](.)+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
Expand Down

0 comments on commit 6c7b80d

Please sign in to comment.