Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4b4d7c

Browse files
author
Dave Cramer
committed
use the result set to set the fetchsize
1 parentf590a5e commitf4b4d7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/interfaces/jdbc/org/postgresql/test/jdbc2/CursorFetchTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void testResultSetFetchSizeOne() throws Exception
8282
PreparedStatementstmt =con.prepareStatement("select * from test_fetch order by value");
8383
stmt.setFetchSize(0);
8484
ResultSetrs =stmt.executeQuery();
85-
stmt.setFetchSize(50);// Should have no effect.
85+
rs.setFetchSize(50);// Should have no effect.
8686

8787
intcount =0;
8888
while (rs.next()) {
@@ -108,7 +108,7 @@ public void testResultSetFetchSizeTwo() throws Exception
108108
PreparedStatementstmt =con.prepareStatement("select * from test_fetch order by value");
109109
stmt.setFetchSize(25);
110110
ResultSetrs =stmt.executeQuery();
111-
stmt.setFetchSize(0);
111+
rs.setFetchSize(0);
112112

113113
intcount =0;
114114
while (rs.next()) {
@@ -136,7 +136,7 @@ public void testResultSetFetchSizeThree() throws Exception
136136
PreparedStatementstmt =con.prepareStatement("select * from test_fetch order by value");
137137
stmt.setFetchSize(25);
138138
ResultSetrs =stmt.executeQuery();
139-
stmt.setFetchSize(50);
139+
rs.setFetchSize(50);
140140

141141
intcount =0;
142142
while (rs.next()) {
@@ -164,7 +164,7 @@ public void testResultSetFetchSizeFour() throws Exception
164164
PreparedStatementstmt =con.prepareStatement("select * from test_fetch order by value");
165165
stmt.setFetchSize(50);
166166
ResultSetrs =stmt.executeQuery();
167-
stmt.setFetchSize(25);
167+
rs.setFetchSize(25);
168168

169169
intcount =0;
170170
while (rs.next()) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp