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

Commitd06e2d2

Browse files
committed
Add ORDER BY to a query to prevent occasional regression test failures.
Per buildfarm, we sometimes get row-ordering variations in the output.This also makes this query look more like numerous other ones in the sametest file.
1 parent169c8a9 commitd06e2d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ create table p1(ff1 int);
601601
alter table only p1 add constraint p1chk check (ff1 > 0);
602602
alter table p1 add constraint p2chk check (ff1 > 10);
603603
-- conisonly should be true for ONLY constraint
604-
select pc.relname, pgc.conname, pgc.contype, pgc.conislocal, pgc.coninhcount, pgc.conisonly from pg_class as pc inner join pg_constraint as pgc on (pgc.conrelid = pc.oid) where pc.relname = 'p1';
604+
select pc.relname, pgc.conname, pgc.contype, pgc.conislocal, pgc.coninhcount, pgc.conisonly from pg_class as pc inner join pg_constraint as pgc on (pgc.conrelid = pc.oid) where pc.relname = 'p1' order by 1,2;
605605
relname | conname | contype | conislocal | coninhcount | conisonly
606606
---------+---------+---------+------------+-------------+-----------
607607
p1 | p1chk | c | t | 0 | t

‎src/test/regress/sql/inherit.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ create table p1(ff1 int);
143143
altertable only p1 addconstraint p1chkcheck (ff1>0);
144144
altertable p1 addconstraint p2chkcheck (ff1>10);
145145
-- conisonly should be true for ONLY constraint
146-
selectpc.relname,pgc.conname,pgc.contype,pgc.conislocal,pgc.coninhcount,pgc.conisonlyfrom pg_classas pcinner join pg_constraintas pgcon (pgc.conrelid=pc.oid)wherepc.relname='p1';
146+
selectpc.relname,pgc.conname,pgc.contype,pgc.conislocal,pgc.coninhcount,pgc.conisonlyfrom pg_classas pcinner join pg_constraintas pgcon (pgc.conrelid=pc.oid)wherepc.relname='p1'order by1,2;
147147

148148
-- Test that child does not inherit ONLY constraints
149149
createtablec1 () inherits (p1);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp