提交 947ff581 编写于 作者: S serge-rider

#7486 Generic driver: isolated context init fix

上级 2da1a9e7
......@@ -135,11 +135,9 @@ public class GenericExecutionContext extends JDBCExecutionContext implements DBC
entityName = defaultCatalog.getName();
} else if (context.supportsSchemaChange()) {
GenericSchema defaultSchema = context.getDefaultSchema();
entityName = defaultSchema.getName();
entityName = defaultSchema == null ? null : defaultSchema.getName();
}
if (entityName == null) {
log.error("Can't determine default entity type");
} else {
if (entityName != null) {
GenericDataSource dataSource = getDataSource();
try (JDBCSession session = openSession(monitor, DBCExecutionPurpose.UTIL, "Set active catalog")) {
if (dataSource.isSelectedEntityFromAPI()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册