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 @@ -229,14 +229,14 @@ else if (obj instanceof Number number) {
229
229
try {
230
230
return rs .getObject (index , requiredType );
231
231
}
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 ) {
236
233
logger .debug ("JDBC driver does not support JDBC 4.1 'getObject(int, Class)' method" , ex );
237
234
}
238
235
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
+ }
240
240
}
241
241
242
242
// Corresponding SQL types for JSR-310 / Joda-Time types, left up
You can’t perform that action at this time.
0 commit comments