From 726f16d5ebea4883ca60ec807697eeb8778845f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=92=E9=9C=89=E7=8B=90=E7=8B=B8?= Date: Fri, 17 Jan 2020 11:43:13 +0800 Subject: [PATCH] =?UTF-8?q?mysql=20=E6=94=AF=E6=8C=81=20=20enum=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/view/cnf/def.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/view/cnf/def.go b/data/view/cnf/def.go index c30e4db..eecd369 100644 --- a/data/view/cnf/def.go +++ b/data/view/cnf/def.go @@ -27,6 +27,7 @@ var TypeMysqlDicMp = map[string]string{ "longtext": "string", "float": "float32", "tinytext": "stirng", + "enum": "string", } // TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型 @@ -36,6 +37,7 @@ var TypeMysqlMatchMp = map[string]string{ `^(int)[(]\d+[)]`: "int", `^(bigint)[(]\d+[)]`: "int64", `^(char)[(]\d+[)]`: "string", + `^(enum)[(](.)+[)]`: "string", `^(varchar)[(]\d+[)]`: "string", `^(varbinary)[(]\d+[)]`: "[]byte", `^(decimal)[(]\d+,\d+[)]`: "float64",