PreparedStatement stmt = con.prepareStatement("select * from test_fetch order by value");
stmt.setFetchSize(0);
ResultSet rs = stmt.executeQuery();
- stmt.setFetchSize(50); // Should have no effect.
+ rs.setFetchSize(50); // Should have no effect.
int count = 0;
while (rs.next()) {
PreparedStatement stmt = con.prepareStatement("select * from test_fetch order by value");
stmt.setFetchSize(25);
ResultSet rs = stmt.executeQuery();
- stmt.setFetchSize(0);
+ rs.setFetchSize(0);
int count = 0;
while (rs.next()) {
PreparedStatement stmt = con.prepareStatement("select * from test_fetch order by value");
stmt.setFetchSize(25);
ResultSet rs = stmt.executeQuery();
- stmt.setFetchSize(50);
+ rs.setFetchSize(50);
int count = 0;
while (rs.next()) {
PreparedStatement stmt = con.prepareStatement("select * from test_fetch order by value");
stmt.setFetchSize(50);
ResultSet rs = stmt.executeQuery();
- stmt.setFetchSize(25);
+ rs.setFetchSize(25);
int count = 0;
while (rs.next()) {