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

Open SQL console handler fix


Former-commit-id: 3d9716a5
上级 20f4a166
......@@ -56,13 +56,13 @@ public class OpenObjectConsoleHandler extends AbstractHandler {
HandlerUtil.getCurrentSelection(event));
List<DBSEntity> entities = new ArrayList<>();
for (DBSObject object : selectedObjects) {
ds = object.getDataSource().getContainer();
if (object instanceof DBSEntity) {
entities.add((DBSEntity) object);
ds = object.getDataSource().getContainer();
}
}
DBRRunnableWithResult<String> generator = GenerateSQLContributor.SELECT_GENERATOR(entities, true);
openConsole(workbenchWindow, generator, ds, "Query", true);
openConsole(workbenchWindow, generator, ds, "Query", !entities.isEmpty());
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册