Commit 3e4cca90 by 独孤求胜 Committed by Gitee

!8 修复sqlservice中文说明乱码

Merge pull request !8 from 四色鬼/master
parents aa84ce70 7b1343e4
...@@ -61,3 +61,5 @@ int8=Long ...@@ -61,3 +61,5 @@ int8=Long
int4=Integer int4=Integer
int2=Integer int2=Integer
numeric=BigDecimal numeric=BigDecimal
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