Commit 7b1343e4 by 小四

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

parent aa84ce70
...@@ -60,4 +60,6 @@ TIMESTAMP(6)=Date ...@@ -60,4 +60,6 @@ TIMESTAMP(6)=Date
int8=Long int8=Long
int4=Integer int4=Integer
int2=Integer int2=Integer
numeric=BigDecimal numeric=BigDecimal
\ No newline at end of file
nvarchar=String
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<select id="queryList" resultType="map"> <select id="queryList" resultType="map">
select * from 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 from sysobjects so
left JOIN sys.extended_properties sep left JOIN sys.extended_properties sep
on sep.major_id=so.id and sep.minor_id=0 on sep.major_id=so.id and sep.minor_id=0
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<select id="queryTable" resultType="map"> <select id="queryTable" resultType="map">
select * from ( 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 from sysobjects so
left JOIN sys.extended_properties sep on sep.major_id=so.id and sep.minor_id=0 left JOIN sys.extended_properties sep on sep.major_id=so.id and sep.minor_id=0
where (xtype='U' or xtype='v') where (xtype='U' or xtype='v')
...@@ -29,13 +29,13 @@ ...@@ -29,13 +29,13 @@
<select id="queryColumns" resultType="map"> <select id="queryColumns" resultType="map">
SELECT SELECT
cast( cast(
b.NAME AS VARCHAR(500) b.NAME AS NVARCHAR(500)
) AS columnName, ) AS columnName,
cast( cast(
sys.types.NAME AS VARCHAR(500) sys.types.NAME AS NVARCHAR(500)
) AS dataType, ) AS dataType,
cast( cast(
c.VALUE AS VARCHAR(500) c.VALUE AS NVARCHAR(500)
) AS columnComment, ) AS columnComment,
( (
SELECT 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