Merge pull request #7800 from dataease/pr@dev-v2@fixds

fix: oracle 支持视图
This commit is contained in:
taojinlong 2024-01-24 17:06:13 +08:00 committed by GitHub
commit 2342eb240e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -453,6 +453,7 @@ public class CalciteProvider {
DEException.throwException(Translator.get("i18n_schema_is_empty"));
}
tableSqls.add("select table_name, owner, comments from all_tab_comments where owner='" + configuration.getSchema() + "' AND table_type = 'TABLE'");
tableSqls.add("select table_name, owner, comments from all_tab_comments where owner='" + configuration.getSchema() + "' AND table_type = 'VIEW'");
break;
case db2:
configuration = JsonUtil.parseObject(datasourceRequest.getDatasource().getConfiguration(), Db2.class);