Skip to content

Commit

Permalink
fix: 修复SqlServerQuery查询表描述乱码,已在SqlServer2017和SqlServer2019版本上面验证通过. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjerry authored Aug 26, 2024
1 parent acbe9a2 commit 7b67119
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SqlServerQuery extends AbstractDbQuery {
@Override
public String tablesSql() {
return "select * from (select cast(so.name as varchar(500)) as TABLE_NAME, " +
"cast(sep.value as varchar(500)) as COMMENTS from sysobjects so " +
"cast(sep.value as nvarchar(500)) as COMMENTS 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')) a where 1=1 ";
}
Expand Down

0 comments on commit 7b67119

Please sign in to comment.