Skip to content

Commit 4832309

Browse files
authored
Improve exception handling in ResultSetUtils for type conversion (#37419)
1 parent ef0031b commit 4832309

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util

infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util/ResultSetUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static Object convertValue(final Object value, final Class<?> convertType
9191
try {
9292
return convertType.cast(value);
9393
} catch (final ClassCastException ignored) {
94-
throw new SQLFeatureNotSupportedException("getObject with type");
94+
throw new SQLFeatureNotSupportedException("getObject with type, cannot convert " + value.getClass().getName() + ":" + value + " to " + convertType.getName());
9595
}
9696
}
9797

0 commit comments

Comments
 (0)