1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

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

Modified Files:
 	ResultSetTest.java
This commit is contained in:
Barry Lind 2003-09-23 06:11:06 +00:00
parent f5c5c3c6f7
commit 618d56d09a

View File

@ -229,10 +229,10 @@ public class ResultSetTest extends TestCase
assertTrue(rs.next());
assertEquals(-1,rs.getByte(1));
int count = 3;
while (rs.next())
{
thrown = false;
try
{
rs.getByte(1);
@ -243,10 +243,7 @@ public class ResultSetTest extends TestCase
}
if (!thrown)
fail("Exception expected.");
count++;
}
if (count != 9)
fail("Exception expected.");
}
public void testgetShort() throws Exception
@ -262,10 +259,10 @@ public class ResultSetTest extends TestCase
assertTrue(rs.next());
assertEquals(-1,rs.getShort(1));
int count = 3;
while (rs.next())
{
thrown = false;
try
{
rs.getShort(1);
@ -276,10 +273,7 @@ public class ResultSetTest extends TestCase
}
if (!thrown)
fail("Exception expected.");
count++;
}
if (count != 9)
fail("Exception expected.");
}
}