Skip to content

Commit

Permalink
Log column type for limited support message in getResultSetValue
Browse files Browse the repository at this point in the history
Closes gh-32601

(cherry picked from commit c5590ae)
  • Loading branch information
jhoeller committed Apr 9, 2024
1 parent 2395945 commit 1d2daa5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ else if (obj instanceof Number) {
try {
return rs.getObject(index, requiredType);
}
catch (AbstractMethodError err) {
logger.debug("JDBC driver does not implement JDBC 4.1 'getObject(int, Class)' method", err);
}
catch (SQLFeatureNotSupportedException ex) {
catch (SQLFeatureNotSupportedException | AbstractMethodError ex) {
logger.debug("JDBC driver does not support JDBC 4.1 'getObject(int, Class)' method", ex);
}
catch (SQLException ex) {
logger.debug("JDBC driver has limited support for JDBC 4.1 'getObject(int, Class)' method", ex);
if (logger.isDebugEnabled()) {
logger.debug("JDBC driver has limited support for 'getObject(int, Class)' with column type: " +
requiredType.getName(), ex);
}
}

// Corresponding SQL types for JSR-310 / Joda-Time types, left up
Expand Down

0 comments on commit 1d2daa5

Please sign in to comment.