Skip to content

Commit

Permalink
Update test cas to illustrate bug suspected
Browse files Browse the repository at this point in the history
http://www.postgresql.org/message-id/OFF3D569C5.9BC4DC3D-ONC1257E1B.0045CF5C-C1257E1B.00472393@retraite.lan

I remove isLast check beacause it change Resultset state and make isAfterLast call always OK
  • Loading branch information
unknown authored and unknown committed Apr 23, 2015
1 parent 2a4d01e commit 69df4e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions org/postgresql/test/jdbc2/CursorFetchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void testAnotherMultiRowResultPositioning() throws Exception
int rowCount = 4;
createRows(rowCount);

int[] sizes = { 2, 3 };
int[] sizes = { 3, 2 };
for (int i = 0; i < sizes.length; ++i)
{
Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
Expand All @@ -398,10 +398,10 @@ public void testAnotherMultiRowResultPositioning() throws Exception
else
assertTrue(msg, !rs.isFirst());

if (j == rowCount - 1)
assertTrue(msg, rs.isLast());
else
assertTrue(msg, !rs.isLast());
// if (j == rowCount - 1)
// assertTrue(msg, rs.isLast());
// else
// assertTrue(msg, !rs.isLast());
}

msg = "after-last row positioning error with fetchsize=" + sizes[i];
Expand Down

0 comments on commit 69df4e0

Please sign in to comment.