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

ResultSet.setFetchSize is now supported.

上级 eba3c952
......@@ -42,6 +42,7 @@ public class TestResultSet extends TestBase {
stat = conn.createStatement();
testFetchSize();
testOwnUpdates();
testFindColumn();
testSubstringPrecision();
......@@ -68,6 +69,19 @@ public class TestResultSet extends TestBase {
}
private void testFetchSize() throws Exception {
if (!config.networked || config.memory) {
return;
}
ResultSet rs = stat.executeQuery("SELECT * FROM SYSTEM_RANGE(1, 100)");
int a = stat.getFetchSize();
int b = rs.getFetchSize();
assertEquals(a, b);
rs.setFetchSize(b + 1);
b = rs.getFetchSize();
assertEquals(a + 1, b);
}
private void testOwnUpdates() throws Exception {
DatabaseMetaData meta = conn.getMetaData();
for (int i = 0; i < 3; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论