Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ private synchronized void detectJdbcVersion(Connection connection) {
}
} catch (Exception ex) {
jdbcVersionDetected = 3;
log.debug("Detected jdbc3 due to exception",ex);
} catch (AbstractMethodError er) {
// this happens if the driver implements JDBC 3 but runs on JDK 1.6+ (which embeds the JDBC 4 interfaces)
jdbcVersionDetected = 3;
log.debug("Detected jdbc3 due to AbstractMethodError",er);
}
if (log.isDebugEnabled()) log.debug("detected JDBC connection class '" + connection.getClass() + "' is version " + jdbcVersionDetected + " type");
}
Expand Down