提交 c37f20ee 编写于 作者: S Serge Rider

Generic driver: schema filters

上级 4e097990
......@@ -124,6 +124,17 @@ public class GenericMetaModel {
// Use general schema reading method
log.debug("Error reading schemas in catalog '" + catalog.getName() + "' - " + e.getClass().getSimpleName() + " - " + e.getMessage());
}
} else {
try {
dbResult = session.getMetaData().getSchemas(
null,
schemaFilters != null && schemaFilters.hasSingleMask() ?
schemaFilters.getSingleMask() :
dataSource.getAllObjectsPattern());
} catch (SQLException e) {
log.debug("Error reading global schemas " + " - " + e.getMessage());
}
}
if (dbResult == null) {
dbResult = session.getMetaData().getSchemas();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册