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

This commit is contained in:
Tom Lane 1998-10-28 19:32:43 +00:00
parent 571d121664
commit 1f27facc90
2 changed files with 7 additions and 3 deletions

View File

@ -311,12 +311,12 @@ bm |pluto
(3 rows)
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
------+-------
bm |pluto
jwieck|orion
jwieck|notjw
jwieck|orion
(3 rows)
QUERY: delete from rtest_system where sysname = 'orion';

View File

@ -251,7 +251,11 @@ select * from rtest_admin;
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';