Commit 618d56d0 authored by Barry Lind's avatar Barry Lind

A fix for jdbc regression test submitted yesterday by Kim Ho at Redhat

 Modified Files:
 	ResultSetTest.java
parent f5c5c3c6
...@@ -229,10 +229,10 @@ public class ResultSetTest extends TestCase ...@@ -229,10 +229,10 @@ public class ResultSetTest extends TestCase
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals(-1,rs.getByte(1)); assertEquals(-1,rs.getByte(1));
int count = 3;
while (rs.next()) while (rs.next())
{ {
thrown = false;
try try
{ {
rs.getByte(1); rs.getByte(1);
...@@ -243,10 +243,7 @@ public class ResultSetTest extends TestCase ...@@ -243,10 +243,7 @@ public class ResultSetTest extends TestCase
} }
if (!thrown) if (!thrown)
fail("Exception expected."); fail("Exception expected.");
count++;
} }
if (count != 9)
fail("Exception expected.");
} }
public void testgetShort() throws Exception public void testgetShort() throws Exception
...@@ -262,10 +259,10 @@ public class ResultSetTest extends TestCase ...@@ -262,10 +259,10 @@ public class ResultSetTest extends TestCase
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals(-1,rs.getShort(1)); assertEquals(-1,rs.getShort(1));
int count = 3;
while (rs.next()) while (rs.next())
{ {
thrown = false;
try try
{ {
rs.getShort(1); rs.getShort(1);
...@@ -276,10 +273,7 @@ public class ResultSetTest extends TestCase ...@@ -276,10 +273,7 @@ public class ResultSetTest extends TestCase
} }
if (!thrown) if (!thrown)
fail("Exception expected."); fail("Exception expected.");
count++;
} }
if (count != 9)
fail("Exception expected.");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment