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

Commiteecbb33

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

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
CREATEVIEWxmlview8ASSELECT xmlserialize(content'good'aschar(10));
143143
CREATEVIEWxmlview9ASSELECT xmlserialize(content'good'astext);
144144

145-
SELECT table_name, view_definitionFROMinformation_schema.viewsWHERE table_nameLIKE'xmlview%';
145+
SELECT table_name, view_definitionFROMinformation_schema.views
146+
WHERE table_nameLIKE'xmlview%'ORDER BY1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp