提交 c82444f4 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix for #144, JdbcResultSet.setFetchDirection() throws Feature not supported.

上级 7751faba
...@@ -177,7 +177,7 @@ public class TestResultSet extends TestBase { ...@@ -177,7 +177,7 @@ public class TestResultSet extends TestBase {
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, rs). assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, rs).
getCursorName(); getCursorName();
assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, rs). assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, rs).
setFetchDirection(ResultSet.FETCH_FORWARD); setFetchDirection(ResultSet.FETCH_REVERSE);
} }
private void testAmbiguousColumnNames() throws SQLException { private void testAmbiguousColumnNames() throws SQLException {
...@@ -396,6 +396,7 @@ public class TestResultSet extends TestBase { ...@@ -396,6 +396,7 @@ public class TestResultSet extends TestBase {
int a = stat.getFetchSize(); int a = stat.getFetchSize();
int b = rs.getFetchSize(); int b = rs.getFetchSize();
assertEquals(a, b); assertEquals(a, b);
rs.setFetchDirection(ResultSet.FETCH_FORWARD);
rs.setFetchSize(b + 1); rs.setFetchSize(b + 1);
b = rs.getFetchSize(); b = rs.getFetchSize();
assertEquals(a + 1, b); assertEquals(a + 1, b);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论