Permalink
Browse files

#5251 Default object detect fix (handle JDBC incompatibility errors)

  • Loading branch information...
serge-rider committed Feb 11, 2019
1 parent 4475345 commit 3e1dd765c631b93c09b09d456cbce3abd54ea034
@@ -705,7 +705,12 @@ public void setDefaultObject(@NotNull DBRProgressMonitor monitor, @NotNull DBSOb
public boolean refreshDefaultObject(@NotNull DBCSession session) throws DBException {
String oldEntityName = selectedEntityName;
DBSObject oldDefaultObject = getDefaultObject();
determineSelectedEntity((JDBCSession) session);
try {
determineSelectedEntity((JDBCSession) session);
} catch (Throwable e) {
log.debug("Error detecting active object", e);
return false;
}
if (!CommonUtils.equalObjects(oldEntityName, selectedEntityName)) {
final DBSObject newDefaultObject = getDefaultObject();
if (newDefaultObject != null) {

0 comments on commit 3e1dd76

Please sign in to comment.