review smallint and tinyint

This commit is contained in:
谢小军
2019-11-07 16:20:13 +08:00
parent 62d8902efa
commit 9617450e6b

View File

@@ -18,8 +18,6 @@ var TypeMysqlDicMp = map[string]string{
"bit(1)": "bool",
"tinyint(1)": "bool",
"tinyint(1) unsigned": "bool",
"tinyint(4)": "int8",
"smallint(6)": "int8",
"json": "string",
"text": "string",
"timestamp": "time.Time",
@@ -27,6 +25,8 @@ var TypeMysqlDicMp = map[string]string{
// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
var TypeMysqlMatchMp = map[string]string{
`^(tinyint)[(]\d+[)]`: "int8",
`^(smallint)[(]\d+[)]`: "int8",
`^(int)[(]\d+[)]`: "int",
`^(bigint)[(]\d+[)]`: "int64",
`^(char)[(]\d+[)]`: "string",