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 @@ -228,14 +228,14 @@ else if (obj instanceof Number) {
228228 try {
229229 return rs .getObject (index , requiredType );
230230 }
231- catch (AbstractMethodError err ) {
232- logger .debug ("JDBC driver does not implement JDBC 4.1 'getObject(int, Class)' method" , err );
233- }
234- catch (SQLFeatureNotSupportedException ex ) {
231+ catch (SQLFeatureNotSupportedException | AbstractMethodError ex ) {
235232 logger .debug ("JDBC driver does not support JDBC 4.1 'getObject(int, Class)' method" , ex );
236233 }
237234 catch (SQLException ex ) {
238- logger .debug ("JDBC driver has limited support for JDBC 4.1 'getObject(int, Class)' method" , ex );
235+ if (logger .isDebugEnabled ()) {
236+ logger .debug ("JDBC driver has limited support for 'getObject(int, Class)' with column type: " +
237+ requiredType .getName (), ex );
238+ }
239239 }
240240
241241 // Corresponding SQL types for JSR-310 / Joda-Time types, left up
You can’t perform that action at this time.
0 commit comments