File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/support Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,14 @@ else if (obj instanceof Number number) {
229229 try {
230230 return rs .getObject (index , requiredType );
231231 }
232- catch (AbstractMethodError err ) {
233- logger .debug ("JDBC driver does not implement JDBC 4.1 'getObject(int, Class)' method" , err );
234- }
235- catch (SQLFeatureNotSupportedException ex ) {
232+ catch (SQLFeatureNotSupportedException | AbstractMethodError ex ) {
236233 logger .debug ("JDBC driver does not support JDBC 4.1 'getObject(int, Class)' method" , ex );
237234 }
238235 catch (SQLException ex ) {
239- logger .debug ("JDBC driver has limited support for JDBC 4.1 'getObject(int, Class)' method" , ex );
236+ if (logger .isDebugEnabled ()) {
237+ logger .debug ("JDBC driver has limited support for 'getObject(int, Class)' with column type: " +
238+ requiredType .getName (), ex );
239+ }
240240 }
241241
242242 // Corresponding SQL types for JSR-310 / Joda-Time types, left up
You can’t perform that action at this time.
0 commit comments