diff options
author | Barry Lind | 2003-09-23 06:11:06 +0000 |
---|---|---|
committer | Barry Lind | 2003-09-23 06:11:06 +0000 |
commit | 618d56d09a272f1d74dcfadbd245ef4452064e4e (patch) | |
tree | 9cf8ad147b2220a420acb401a0bd2d0623139dd3 | |
parent | f5c5c3c6f7ecb0457d464c1d5b881315cdba6133 (diff) |
A fix for jdbc regression test submitted yesterday by Kim Ho at Redhat
Modified Files:
ResultSetTest.java
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java b/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java index 6a1803f4c2c..d7e621e20c6 100644 --- a/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java +++ b/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java @@ -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."); } } |