Fix collate regression case by removing an ORDER BY (added in XL) which seems
authorPavan Deolasee <[email protected]>
Mon, 1 Feb 2016 10:55:50 +0000 (11:55 +0100)
committerPavan Deolasee <[email protected]>
Mon, 1 Feb 2016 10:55:50 +0000 (11:55 +0100)
to produce different results on different platforms.

Expected output adjusted accordingly

src/test/regress/expected/collate.out
src/test/regress/sql/collate.sql

index 13c252494e7e2e09095eff1c2d376a50bf0314be..2c037682f339c50bc334593ceb12c0ba4cc24ea9 100644 (file)
@@ -489,7 +489,7 @@ LINE 2:    (SELECT x FROM (VALUES('a' COLLATE "C"),('b')) t(x)
                    ^
 HINT:  Use the COLLATE clause to set the collation of the non-recursive term.
 SELECT a, b, a < b as lt FROM
-  (VALUES ('a', 'B'), ('A', 'b' COLLATE "C")) v(a,b) ORDER BY a;
+  (VALUES ('a', 'B'), ('A', 'b' COLLATE "C")) v(a,b);
  a | b | lt 
 ---+---+----
  a | B | f
index a281921fe2f8492efb66cd8d39c96db41687671c..d663593111d779c4cde204e159a8a16e4c67e042 100644 (file)
@@ -161,7 +161,7 @@ WITH RECURSIVE foo(x) AS
 SELECT * FROM foo;
 
 SELECT a, b, a < b as lt FROM
-  (VALUES ('a', 'B'), ('A', 'b' COLLATE "C")) v(a,b) ORDER BY a;
+  (VALUES ('a', 'B'), ('A', 'b' COLLATE "C")) v(a,b);
 
 
 -- casting