Skip to content

Commit

Permalink
Determine if connection is EDB by calling version()
Browse files Browse the repository at this point in the history
  • Loading branch information
nvoxland committed Jan 19, 2022
1 parent a91a8c7 commit 548da8a
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,5 +1,6 @@
package liquibase.database.core;

import liquibase.Scope;
import liquibase.database.DatabaseConnection;
import liquibase.database.jvm.JdbcConnection;
import liquibase.exception.DatabaseException;
Expand All @@ -26,7 +27,8 @@ public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws D
}
}
}
} catch (SQLException throwables) {
} catch (SQLException e) {
Scope.getCurrentScope().getLog(getClass()).fine("Error checking if connection is an EnterpriseDB database: "+e.getMessage(), e);
return false;
}
}
Expand Down

0 comments on commit 548da8a

Please sign in to comment.