提交 d0b05c9c authored 作者: Noel Grandin's avatar Noel Grandin

<li>Issue #295: JdbcResultSet.getObject(int, Class) returns null instead of throwing

上级 4e926a2d
...@@ -21,7 +21,7 @@ Change Log ...@@ -21,7 +21,7 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>- <li>Issue #295: JdbcResultSet.getObject(int, Class) returns null instead of throwing.
</li> </li>
</ul> </ul>
......
...@@ -27,7 +27,6 @@ import java.sql.Timestamp; ...@@ -27,7 +27,6 @@ import java.sql.Timestamp;
import java.util.Calendar; import java.util.Calendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
import org.h2.engine.SysProperties; import org.h2.engine.SysProperties;
import org.h2.message.DbException; import org.h2.message.DbException;
...@@ -3688,7 +3687,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3688,7 +3687,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/*## Java 1.7 ## /*## Java 1.7 ##
@Override @Override
public <T> T getObject(int columnIndex, Class<T> type) { public <T> T getObject(int columnIndex, Class<T> type) {
return null; throw unsupported("getObject");
} }
//*/ //*/
...@@ -3701,7 +3700,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet { ...@@ -3701,7 +3700,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/*## Java 1.7 ## /*## Java 1.7 ##
@Override @Override
public <T> T getObject(String columnName, Class<T> type) { public <T> T getObject(String columnName, Class<T> type) {
return null; throw unsupported("getObject");
} }
//*/ //*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论