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

Commit eecbb33

Browse files
committed
Add ORDER BY to a query on information_schema.views, to avoid possible
platform-specific result ordering. Per buildfarm results.
1 parent bfe553f commit eecbb33

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/test/regress/expected/xml.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ CREATE VIEW xmlview6 AS SELECT xmlpi(name foo, 'bar');
386386
CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version no value, standalone yes);
387387
CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
388388
CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
389-
SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
389+
SELECT table_name, view_definition FROM information_schema.views
390+
WHERE table_name LIKE 'xmlview%' ORDER BY 1;
390391
table_name | view_definition
391392
------------+--------------------------------------------------------------------------------------------------------------------------------
392393
xmlview1 | SELECT xmlcomment('test'::text) AS xmlcomment;

src/test/regress/expected/xml_1.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
189189
ERROR: no XML support in this installation
190190
CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
191191
ERROR: no XML support in this installation
192-
SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
192+
SELECT table_name, view_definition FROM information_schema.views
193+
WHERE table_name LIKE 'xmlview%' ORDER BY 1;
193194
table_name | view_definition
194195
------------+-------------------------------------------------------------------------------
195196
xmlview1 | SELECT xmlcomment('test'::text) AS xmlcomment;

src/test/regress/sql/xml.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,5 @@ CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version no value, standalon
142142
CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
143143
CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
144144

145-
SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
145+
SELECT table_name, view_definition FROM information_schema.views
146+
WHERE table_name LIKE 'xmlview%' ORDER BY 1;

0 commit comments

Comments
 (0)