fix: oracle 支持视图

This commit is contained in:
taojinlong 2024-01-24 17:05:31 +08:00
parent 02d31c6dca
commit 03bb052183

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);