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

#7643 PG: object search fix (auto-complete)

上级 20845524
......@@ -379,12 +379,17 @@ public final class DBUtils {
for (int i = 0; i < names.size(); i++) {
String childName = names.get(i);
DBSObject child = parent.getChild(monitor, childName);
if (child == null) {
if (child == null && i == 0) {
DBCExecutionContextDefaults contextDefaults = executionContext.getContextDefaults();
DBSObjectContainer container = DBUtils.getSelectedObject(executionContext, DBSObjectContainer.class);
DBSObjectContainer container = contextDefaults.getDefaultCatalog();
if (container != null) {
parent = container;
child = parent.getChild(monitor, childName);
child = container.getChild(monitor, childName);
if (child == null) {
container = contextDefaults.getDefaultSchema();
if (container != null) {
child = container.getChild(monitor, childName);
}
}
}
}
if (child == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册