Skip to content

Commit 618d56d

Browse files
author
Barry Lind
committed
A fix for jdbc regression test submitted yesterday by Kim Ho at Redhat
Modified Files: ResultSetTest.java
1 parent f5c5c3c commit 618d56d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ public void testgetByte() throws Exception
229229

230230
assertTrue(rs.next());
231231
assertEquals(-1,rs.getByte(1));
232-
int count = 3;
233232

234233
while (rs.next())
235234
{
235+
thrown = false;
236236
try
237237
{
238238
rs.getByte(1);
@@ -243,10 +243,7 @@ public void testgetByte() throws Exception
243243
}
244244
if (!thrown)
245245
fail("Exception expected.");
246-
count++;
247246
}
248-
if (count != 9)
249-
fail("Exception expected.");
250247
}
251248

252249
public void testgetShort() throws Exception
@@ -262,10 +259,10 @@ public void testgetShort() throws Exception
262259

263260
assertTrue(rs.next());
264261
assertEquals(-1,rs.getShort(1));
265-
int count = 3;
266262

267263
while (rs.next())
268264
{
265+
thrown = false;
269266
try
270267
{
271268
rs.getShort(1);
@@ -276,10 +273,7 @@ public void testgetShort() throws Exception
276273
}
277274
if (!thrown)
278275
fail("Exception expected.");
279-
count++;
280276
}
281-
if (count != 9)
282-
fail("Exception expected.");
283277
}
284278

285279
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy