From cf35af26e9c17f7b814ac3ad8accc6956fc8b4dd Mon Sep 17 00:00:00 2001 From: Cong Hu Date: Thu, 18 Dec 2025 09:44:46 +0800 Subject: [PATCH] Improve exception handling in ResultSetUtils for type conversion --- .../result/query/impl/driver/jdbc/type/util/ResultSetUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util/ResultSetUtils.java b/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util/ResultSetUtils.java index f572a20f2c91e..a69984341b3cb 100644 --- a/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util/ResultSetUtils.java +++ b/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/execute/result/query/impl/driver/jdbc/type/util/ResultSetUtils.java @@ -91,7 +91,7 @@ public static Object convertValue(final Object value, final Class convertType try { return convertType.cast(value); } catch (final ClassCastException ignored) { - throw new SQLFeatureNotSupportedException("getObject with type"); + throw new SQLFeatureNotSupportedException("getObject with type, cannot convert " + value.getClass().getName() + ":" + value + " to " + convertType.getName()); } }