提交 a2bb1d95 编写于 作者: J jurgen

Data transfer container check

上级 8268f6b4
......@@ -296,6 +296,9 @@ public class DatabaseTransferConsumer implements IDataTransferConsumer<DatabaseC
monitor.subTask("Create table " + containerMapping.getTargetName());
StringBuilder sql = new StringBuilder(500);
DBSObjectContainer schema = settings.getContainer();
if (schema == null) {
throw new DBException("No target container selected");
}
if (!(schema.getDataSource() instanceof SQLDataSource)) {
throw new DBException("Data source doesn't support SQL");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册