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

Commit2ed16aa

Browse files
committed
Fix underspecified sort order in inherit.sql
Introduced ine056c55.Per buildfarm member prion.
1 parent4397abd commit2ed16aa

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,8 @@ select conrelid::regclass, conname, contype, conkey,
19971997
(select attname from pg_attribute where attrelid = conrelid and attnum = conkey[1]),
19981998
coninhcount, conislocal, connoinherit
19991999
from pg_constraint where contype in ('n','p') and
2000-
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass);
2000+
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass)
2001+
order by 1, 2;
20012002
conrelid | conname | contype | conkey | attname | coninhcount | conislocal | connoinherit
20022003
------------+-----------------------+---------+--------+---------+-------------+------------+--------------
20032004
inh_parent | inh_parent_a_not_null | n | {1} | a | 0 | t | f
@@ -2009,7 +2010,8 @@ select conrelid::regclass, conname, contype, conkey,
20092010
(select attname from pg_attribute where attrelid = conrelid and attnum = conkey[1]),
20102011
coninhcount, conislocal, connoinherit
20112012
from pg_constraint where contype in ('n','p') and
2012-
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass);
2013+
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass)
2014+
order by 1, 2;
20132015
conrelid | conname | contype | conkey | attname | coninhcount | conislocal | connoinherit
20142016
------------+-----------------------+---------+--------+---------+-------------+------------+--------------
20152017
inh_parent | inh_parent_a_not_null | n | {1} | a | 0 | t | f
@@ -2021,7 +2023,8 @@ select conrelid::regclass, conname, contype, conkey,
20212023
(select attname from pg_attribute where attrelid = conrelid and attnum = conkey[1]),
20222024
coninhcount, conislocal, connoinherit
20232025
from pg_constraint where contype in ('n','p') and
2024-
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass);
2026+
conrelid in ('inh_child'::regclass, 'inh_parent'::regclass)
2027+
order by 1, 2;
20252028
conrelid | conname | contype | conkey | attname | coninhcount | conislocal | connoinherit
20262029
----------+---------+---------+--------+---------+-------------+------------+--------------
20272030
(0 rows)

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,19 +747,22 @@ select conrelid::regclass, conname, contype, conkey,
747747
(select attnamefrom pg_attributewhere attrelid= conrelidand attnum= conkey[1]),
748748
coninhcount, conislocal, connoinherit
749749
from pg_constraintwhere contypein ('n','p')and
750-
conrelidin ('inh_child'::regclass,'inh_parent'::regclass);
750+
conrelidin ('inh_child'::regclass,'inh_parent'::regclass)
751+
order by1,2;
751752
altertable inh_child alter a dropnot null;
752753
select conrelid::regclass, conname, contype, conkey,
753754
(select attnamefrom pg_attributewhere attrelid= conrelidand attnum= conkey[1]),
754755
coninhcount, conislocal, connoinherit
755756
from pg_constraintwhere contypein ('n','p')and
756-
conrelidin ('inh_child'::regclass,'inh_parent'::regclass);
757+
conrelidin ('inh_child'::regclass,'inh_parent'::regclass)
758+
order by1,2;
757759
altertable inh_parent alter a dropnot null;
758760
select conrelid::regclass, conname, contype, conkey,
759761
(select attnamefrom pg_attributewhere attrelid= conrelidand attnum= conkey[1]),
760762
coninhcount, conislocal, connoinherit
761763
from pg_constraintwhere contypein ('n','p')and
762-
conrelidin ('inh_child'::regclass,'inh_parent'::regclass);
764+
conrelidin ('inh_child'::regclass,'inh_parent'::regclass)
765+
order by1,2;
763766
droptable inh_parent, inh_child;
764767

765768
-- NOT NULL NO INHERIT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp