提交 46ce0a65 authored 作者: Philippe Marschall's avatar Philippe Marschall

Better getObject error message

When an unsupported type is passed to getObject(int|String, Class) the
error message always says that "java.lang.Class" is unsupported instead
of the actual type.
上级 5c6935dd
...@@ -3831,7 +3831,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet, JdbcResultS ...@@ -3831,7 +3831,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet, JdbcResultS
return type.cast(LocalDateTimeUtils.valueToOffsetDateTime( return type.cast(LocalDateTimeUtils.valueToOffsetDateTime(
(ValueTimestampTimeZone) value)); (ValueTimestampTimeZone) value));
} else { } else {
throw unsupported(type.getClass().getName()); throw unsupported(type.getName());
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论