forked from github/dataease
fix(数据源): sqlserver 获取表出错
This commit is contained in:
parent
db68e63685
commit
408dccb1c7
@ -689,7 +689,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
|
|||||||
if (StringUtils.isEmpty(sqlServerConfiguration.getSchema())) {
|
if (StringUtils.isEmpty(sqlServerConfiguration.getSchema())) {
|
||||||
throw new Exception(Translator.get("i18n_schema_is_empty"));
|
throw new Exception(Translator.get("i18n_schema_is_empty"));
|
||||||
}
|
}
|
||||||
return "SELECT TABLE_NAME FROM DATABASE.INFORMATION_SCHEMA.VIEWS WHERE TABLE_SCHEMA = 'DS_SCHEMA' ;"
|
return "SELECT TABLE_NAME FROM \"DATABASE\".INFORMATION_SCHEMA.VIEWS WHERE TABLE_SCHEMA = 'DS_SCHEMA' ;"
|
||||||
.replace("DATABASE", sqlServerConfiguration.getDataBase())
|
.replace("DATABASE", sqlServerConfiguration.getDataBase())
|
||||||
.replace("DS_SCHEMA", sqlServerConfiguration.getSchema());
|
.replace("DS_SCHEMA", sqlServerConfiguration.getSchema());
|
||||||
case oracle:
|
case oracle:
|
||||||
|
Loading…
Reference in New Issue
Block a user