From 8ced43d99830795492e69c444fb97b20b352af4a Mon Sep 17 00:00:00 2001 From: Swmiao1 <14635708@qq.com> Date: Tue, 30 Nov 2021 15:53:06 +0800 Subject: [PATCH] =?UTF-8?q?mssql=20=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=20?= =?UTF-8?q?=E5=9C=A8=E6=8E=92=E5=BA=8F=E4=BE=9D=E6=8D=AE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E5=A4=9A=E6=AC=A1=E6=8C=87=E5=AE=9A=E4=BA=86=E6=9F=90?= =?UTF-8?q?=E4=B8=80=E5=88=97=E3=80=82=E6=8E=92=E5=BA=8F=E4=BE=9D=E6=8D=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=AD=E7=9A=84=E5=88=97=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E6=98=AF=E5=94=AF=E4=B8=80=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/view/cnf/def.go | 5 +++++ data/view/model/genmssql/genmssql.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/view/cnf/def.go b/data/view/cnf/def.go index 913d2d5..85c9f2c 100644 --- a/data/view/cnf/def.go +++ b/data/view/cnf/def.go @@ -46,6 +46,11 @@ var TypeMysqlDicMp = map[string]string{ "mediumblob": "[]byte", "longblob": "[]byte", "integer": "int64", + "numeric": "int64", + "smalldatetime": "time.Time", //sqlserver + "nvarchar": "string", + "real": "float32", + "binary": "[]byte", } // TypeMysqlMatchList Fuzzy Matching Types.模糊匹配类型 diff --git a/data/view/model/genmssql/genmssql.go b/data/view/model/genmssql/genmssql.go index 584a81b..ddad304 100644 --- a/data/view/model/genmssql/genmssql.go +++ b/data/view/model/genmssql/genmssql.go @@ -159,7 +159,7 @@ on where d.name='%v' order by - a.id,a.colorder`, tab) + a.colorder`, tab) lenPk := 0 // get keys