@@ -82,7 +82,7 @@ public void testResultSetFetchSizeOne() throws Exception
8282PreparedStatement stmt =con .prepareStatement ("select * from test_fetch order by value" );
8383stmt .setFetchSize (0 );
8484ResultSet rs =stmt .executeQuery ();
85- stmt .setFetchSize (50 );// Should have no effect.
85+ rs .setFetchSize (50 );// Should have no effect.
8686
8787int count =0 ;
8888while (rs .next ()) {
@@ -108,7 +108,7 @@ public void testResultSetFetchSizeTwo() throws Exception
108108PreparedStatement stmt =con .prepareStatement ("select * from test_fetch order by value" );
109109stmt .setFetchSize (25 );
110110ResultSet rs =stmt .executeQuery ();
111- stmt .setFetchSize (0 );
111+ rs .setFetchSize (0 );
112112
113113int count =0 ;
114114while (rs .next ()) {
@@ -136,7 +136,7 @@ public void testResultSetFetchSizeThree() throws Exception
136136PreparedStatement stmt =con .prepareStatement ("select * from test_fetch order by value" );
137137stmt .setFetchSize (25 );
138138ResultSet rs =stmt .executeQuery ();
139- stmt .setFetchSize (50 );
139+ rs .setFetchSize (50 );
140140
141141int count =0 ;
142142while (rs .next ()) {
@@ -164,7 +164,7 @@ public void testResultSetFetchSizeFour() throws Exception
164164PreparedStatement stmt =con .prepareStatement ("select * from test_fetch order by value" );
165165stmt .setFetchSize (50 );
166166ResultSet rs =stmt .executeQuery ();
167- stmt .setFetchSize (25 );
167+ rs .setFetchSize (25 );
168168
169169int count =0 ;
170170while (rs .next ()) {