Skip to content

Commit

Permalink
#819 Fix test for FB 4.0 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Sep 20, 2024
1 parent 3fa5c4d commit d8451a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/org/firebirdsql/jdbc/FBResultSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,11 @@ void insertRowImmediatelyAfterExecuteQuery_doesNotReportRowTwice(String scrollab

List<Object> row1 = Arrays.asList(1, "1");
List<Object> insertRow = Arrays.asList(2, "2");
List<List<Object>> expectedRows = "SERVER".equals(scrollableCursorPropertyValue)
? Arrays.asList(row1, insertRow)
: Arrays.asList(insertRow, row1);
List<List<Object>> expectedRows =
"SERVER".equals(scrollableCursorPropertyValue)
&& getDefaultSupportInfo().supportsScrollableCursors()
? Arrays.asList(row1, insertRow)
: Arrays.asList(insertRow, row1);

for (int i = 0; i < expectedRows.size(); i++) {
List<Object> expectedRow = expectedRows.get(i);
Expand Down

0 comments on commit d8451a5

Please sign in to comment.