Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 21f862e

Browse files
committed
The particular table names used in the new inheritance regression test are
prone to sort differently in different locales, as seen in buildfarm results. Let's cast to name not text to avoid that.
1 parent cedae13 commit 21f862e

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
@@ -1124,7 +1124,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
11241124
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
11251125
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
11261126
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
1127-
ORDER BY a.attrelid::regclass::text, a.attnum;
1127+
ORDER BY a.attrelid::regclass::name, a.attnum;
11281128
attrelid | attname | attinhcount | expected
11291129
----------+---------+-------------+----------
11301130
t2 | aaaa | 1 | 1

src/test/regress/sql/inherit.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,6 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
370370
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
371371
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
372372
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
373-
ORDER BY a.attrelid::regclass::text, a.attnum;
373+
ORDER BY a.attrelid::regclass::name, a.attnum;
374374

375375
DROP TABLE t1, s1 CASCADE;

0 commit comments

Comments
 (0)