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

Commit32bc0d0

Browse files
committed
Fix underspecified sort order in test query
Fail ine056c55.
1 parentf3fa313 commit32bc0d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,15 +2218,15 @@ select conrelid::regclass, contype, conname,
22182218
from pg_constraint where contype = 'n' and
22192219
conrelid::regclass in ('inh_p1', 'inh_p2', 'inh_p3', 'inh_p4',
22202220
'inh_multiparent')
2221-
order by1, 2;
2221+
order byconrelid::regclass::text, conname;
22222222
conrelid | contype | conname | attname | coninhcount | conislocal
22232223
-----------------+---------+--------------------+---------+-------------+------------
2224+
inh_multiparent | n | inh_p1_f1_not_null | f1 | 3 | f
2225+
inh_multiparent | n | inh_p4_f3_not_null | f3 | 1 | f
22242226
inh_p1 | n | inh_p1_f1_not_null | f1 | 0 | t
22252227
inh_p2 | n | inh_p2_f1_not_null | f1 | 0 | t
22262228
inh_p4 | n | inh_p4_f1_not_null | f1 | 0 | t
22272229
inh_p4 | n | inh_p4_f3_not_null | f3 | 0 | t
2228-
inh_multiparent | n | inh_p1_f1_not_null | f1 | 3 | f
2229-
inh_multiparent | n | inh_p4_f3_not_null | f3 | 1 | f
22302230
(6 rows)
22312231

22322232
create table inh_multiparent2 (a int not null, f1 int) inherits(inh_p3, inh_multiparent);
@@ -2237,7 +2237,7 @@ select conrelid::regclass, contype, conname,
22372237
coninhcount, conislocal
22382238
from pg_constraint where contype = 'n' and
22392239
conrelid::regclass in ('inh_p3', 'inh_multiparent', 'inh_multiparent2')
2240-
order by1, 2;
2240+
order byconrelid::regclass::text, conname;
22412241
conrelid | contype | conname | attname | coninhcount | conislocal
22422242
------------------+---------+-----------------------------+---------+-------------+------------
22432243
inh_multiparent | n | inh_p1_f1_not_null | f1 | 3 | f

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,15 +875,15 @@ select conrelid::regclass, contype, conname,
875875
from pg_constraintwhere contype='n'and
876876
conrelid::regclassin ('inh_p1','inh_p2','inh_p3','inh_p4',
877877
'inh_multiparent')
878-
order by1,2;
878+
order byconrelid::regclass::text, conname;
879879

880880
createtableinh_multiparent2 (aintnot null, f1int) inherits(inh_p3, inh_multiparent);
881881
select conrelid::regclass, contype, conname,
882882
(select attnamefrom pg_attributewhere attrelid= conrelidand attnum= conkey[1]),
883883
coninhcount, conislocal
884884
from pg_constraintwhere contype='n'and
885885
conrelid::regclassin ('inh_p3','inh_multiparent','inh_multiparent2')
886-
order by1,2;
886+
order byconrelid::regclass::text, conname;
887887

888888
droptable inh_p1, inh_p2, inh_p3, inh_p4 cascade;
889889

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp