Commit 1f27facc authored by Tom Lane's avatar Tom Lane

Add ORDER BY to ensure platform-independent results in rules test.

parent 571d1216
...@@ -311,12 +311,12 @@ bm |pluto ...@@ -311,12 +311,12 @@ bm |pluto
(3 rows) (3 rows)
QUERY: update rtest_person set pname = 'jwieck' where pdesc = 'Jan Wieck'; QUERY: update rtest_person set pname = 'jwieck' where pdesc = 'Jan Wieck';
QUERY: select * from rtest_admin; QUERY: select * from rtest_admin order by pname, sysname;
pname |sysname pname |sysname
------+------- ------+-------
bm |pluto bm |pluto
jwieck|orion
jwieck|notjw jwieck|notjw
jwieck|orion
(3 rows) (3 rows)
QUERY: delete from rtest_system where sysname = 'orion'; QUERY: delete from rtest_system where sysname = 'orion';
......
...@@ -251,7 +251,11 @@ select * from rtest_admin; ...@@ -251,7 +251,11 @@ select * from rtest_admin;
update rtest_person set pname = 'jwieck' where pdesc = 'Jan Wieck'; update rtest_person set pname = 'jwieck' where pdesc = 'Jan Wieck';
select * from rtest_admin; -- Note: use ORDER BY here to ensure consistent output across all systems.
-- The above UPDATE affects two rows with equal keys, so they could be
-- updated in either order depending on the whim of the local qsort().
select * from rtest_admin order by pname, sysname;
delete from rtest_system where sysname = 'orion'; delete from rtest_system where sysname = 'orion';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment