提交 547ad6f2 authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

ResultSet.getObject threw a ClassNotFoundException if the JTS suite was not in the classpath

上级 35384a3f
......@@ -20,7 +20,7 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>-
<ul><li>ResultSet.getObject threw a ClassNotFoundException if the JTS suite was not in the classpath.
</li></ul>
<h2>Version 1.4.193 Beta (2016-10-31)</h2>
......
......@@ -60,8 +60,6 @@ import org.h2.value.ValueTime;
import org.h2.value.ValueTimestamp;
import org.h2.value.ValueTimestampTimeZone;
import com.vividsolutions.jts.geom.Geometry;
/**
* <p>
* Represents a result set.
......@@ -3782,7 +3780,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet, JdbcResultS
return type.cast(value.getBytes());
} else if (type == TimestampWithTimeZone.class) {
return type.cast(value.getObject());
} else if (type.isAssignableFrom(Geometry.class)) {
} else if (DataType.isGeometryClass(type)) {
return type.cast(value.getObject());
} else if (LocalDateTimeUtils.isLocalDate(type)) {
return type.cast(LocalDateTimeUtils.valueToLocalDate(value));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论