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"},