Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit618d56d

Browse files
author
Barry Lind
committed
A fix for jdbc regression test submitted yesterday by Kim Ho at Redhat
Modified Files: ResultSetTest.java
1 parentf5c5c3c commit618d56d

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-
intcount =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
publicvoidtestgetShort()throwsException
@@ -262,10 +259,10 @@ public void testgetShort() throws Exception
262259

263260
assertTrue(rs.next());
264261
assertEquals(-1,rs.getShort(1));
265-
intcount =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)

[8]ページ先頭

©2009-2025 Movatter.jp