File tree 1 file changed +4
-4
lines changed
src/interfaces/jdbc/org/postgresql/test/jdbc2
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public void testResultSetFetchSizeOne() throws Exception
82
82
PreparedStatement stmt = con .prepareStatement ("select * from test_fetch order by value" );
83
83
stmt .setFetchSize (0 );
84
84
ResultSet rs = stmt .executeQuery ();
85
- stmt .setFetchSize (50 ); // Should have no effect.
85
+ rs .setFetchSize (50 ); // Should have no effect.
86
86
87
87
int count = 0 ;
88
88
while (rs .next ()) {
@@ -108,7 +108,7 @@ public void testResultSetFetchSizeTwo() throws Exception
108
108
PreparedStatement stmt = con .prepareStatement ("select * from test_fetch order by value" );
109
109
stmt .setFetchSize (25 );
110
110
ResultSet rs = stmt .executeQuery ();
111
- stmt .setFetchSize (0 );
111
+ rs .setFetchSize (0 );
112
112
113
113
int count = 0 ;
114
114
while (rs .next ()) {
@@ -136,7 +136,7 @@ public void testResultSetFetchSizeThree() throws Exception
136
136
PreparedStatement stmt = con .prepareStatement ("select * from test_fetch order by value" );
137
137
stmt .setFetchSize (25 );
138
138
ResultSet rs = stmt .executeQuery ();
139
- stmt .setFetchSize (50 );
139
+ rs .setFetchSize (50 );
140
140
141
141
int count = 0 ;
142
142
while (rs .next ()) {
@@ -164,7 +164,7 @@ public void testResultSetFetchSizeFour() throws Exception
164
164
PreparedStatement stmt = con .prepareStatement ("select * from test_fetch order by value" );
165
165
stmt .setFetchSize (50 );
166
166
ResultSet rs = stmt .executeQuery ();
167
- stmt .setFetchSize (25 );
167
+ rs .setFetchSize (25 );
168
168
169
169
int count = 0 ;
170
170
while (rs .next ()) {
You can’t perform that action at this time.
0 commit comments