Add ORDER BY to ensure platform-independent results in rules test.
This commit is contained in:
parent
571d121664
commit
1f27facc90
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user