Permalink
Browse files

tests: make CursorFetchTest.testGetRow to use stable order of rows so…

… the test does not depend on actual implementation of UNION
  • Loading branch information...
vlsi committed Oct 17, 2016
1 parent cf6b836 commit 3c8efe422f17e2684f8d2936b999a4cc422d0482
Showing with 1 addition and 1 deletion.
  1. +1 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CursorFetchTest.java
@@ -390,7 +390,7 @@ public void testNoCursorWithAutoCommit() throws Exception {
public void testGetRow() throws SQLException {
Statement stmt = con.createStatement();
stmt.setFetchSize(1);
ResultSet rs = stmt.executeQuery("SELECT 1 UNION SELECT 2 UNION SELECT 3");
ResultSet rs = stmt.executeQuery("SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT 3");
int count = 0;
while (rs.next()) {
count++;

0 comments on commit 3c8efe4

Please sign in to comment.