File tree 1 file changed +5
-5
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/support
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) {
228
228
try {
229
229
return rs .getObject (index , requiredType );
230
230
}
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 ) {
235
232
logger .debug ("JDBC driver does not support JDBC 4.1 'getObject(int, Class)' method" , ex );
236
233
}
237
234
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
+ }
239
239
}
240
240
241
241
// Corresponding SQL types for JSR-310 / Joda-Time types, left up
You can’t perform that action at this time.
0 commit comments