Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f27fac

Browse files
committed
Add ORDER BY to ensure platform-independent results in rules test.
1 parent571d121 commit1f27fac

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎src/test/regress/expected/rules.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ bm |pluto
311311
(3 rows)
312312

313313
QUERY: update rtest_person set pname = 'jwieck' where pdesc = 'Jan Wieck';
314-
QUERY: select * from rtest_admin;
314+
QUERY: select * from rtest_admin order by pname, sysname;
315315
pname |sysname
316316
------+-------
317317
bm |pluto
318-
jwieck|orion
319318
jwieck|notjw
319+
jwieck|orion
320320
(3 rows)
321321

322322
QUERY: delete from rtest_system where sysname = 'orion';

‎src/test/regress/sql/rules.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@ select * from rtest_admin;
251251

252252
update rtest_personset pname='jwieck'where pdesc='Jan Wieck';
253253

254-
select*from rtest_admin;
254+
-- Note: use ORDER BY here to ensure consistent output across all systems.
255+
-- The above UPDATE affects two rows with equal keys, so they could be
256+
-- updated in either order depending on the whim of the local qsort().
257+
258+
select*from rtest_adminorder by pname, sysname;
255259

256260
deletefrom rtest_systemwhere sysname='orion';
257261

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp