From e095784bba65676c9af1aa3dfa2bd1c9b8a16238 Mon Sep 17 00:00:00 2001 From: "lei.zhang" Date: Fri, 10 Sep 2021 12:44:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Alet=20=20smallint=20into=20int16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/view/cnf/def.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/view/cnf/def.go b/data/view/cnf/def.go index a87d9f9..913d2d5 100644 --- a/data/view/cnf/def.go +++ b/data/view/cnf/def.go @@ -70,7 +70,8 @@ var TypeMysqlMatchList = []struct { {`^(blob)[(]\d+[)]`, "[]byte"}, {`^(binary)[(]\d+[)]`, "[]byte"}, {`^(decimal)[(]\d+,\d+[)]`, "float64"}, - {`^(mediumint)[(]\d+[)]`, "string"}, + {`^(mediumint)[(]\d+[)]`, "int16"}, + {`^(mediumint)[(]\d+[)] unsigned`, "uint16"}, {`^(double)[(]\d+,\d+[)]`, "float64"}, {`^(float)[(]\d+,\d+[)]`, "float64"}, {`^(datetime)[(]\d+[)]`, "time.Time"},