Commit 7b1343e4 by 小四

修复sqlservice备注乱码,nvarchar不能自动识别错误

parent aa84ce70
......@@ -61,3 +61,5 @@ int8=Long
int4=Integer
int2=Integer
numeric=BigDecimal
nvarchar=String
\ No newline at end of file
......@@ -5,7 +5,7 @@
<select id="queryList" resultType="map">
select * from
(
select cast(so.name as varchar(500)) as tableName, cast(sep.value as varchar(500)) as tableComment, getDate() as createTime
select cast(so.name as nvarchar(500)) as tableName, cast(sep.value as nvarchar(500)) as tableComment, getDate() as createTime
from sysobjects so
left JOIN sys.extended_properties sep
on sep.major_id=so.id and sep.minor_id=0
......@@ -19,7 +19,7 @@
<select id="queryTable" resultType="map">
select * from (
select cast(so.name as varchar(500)) as tableName, 'mssql' as engine,cast(sep.value as varchar(500)) as tableComment, getDate() as createTime
select cast(so.name as nvarchar(500)) as tableName, 'mssql' as engine,cast(sep.value as nvarchar(500)) as tableComment, getDate() as createTime
from sysobjects so
left JOIN sys.extended_properties sep on sep.major_id=so.id and sep.minor_id=0
where (xtype='U' or xtype='v')
......@@ -29,13 +29,13 @@
<select id="queryColumns" resultType="map">
SELECT
cast(
b.NAME AS VARCHAR(500)
b.NAME AS NVARCHAR(500)
) AS columnName,
cast(
sys.types.NAME AS VARCHAR(500)
sys.types.NAME AS NVARCHAR(500)
) AS dataType,
cast(
c.VALUE AS VARCHAR(500)
c.VALUE AS NVARCHAR(500)
) AS columnComment,
(
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment