]> granicus.if.org Git - postgresql/commitdiff
Add ORDER BY to a query on information_schema.views, to avoid possible
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2007 05:05:03 +0000 (05:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2007 05:05:03 +0000 (05:05 +0000)
platform-specific result ordering.  Per buildfarm results.

src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/sql/xml.sql

index 6d79a4166e7cd95c5c92be30bf13c2896614ede4..97c30600e84ab470e685482c6c3aa2e6d347bc57 100644 (file)
@@ -386,7 +386,8 @@ CREATE VIEW xmlview6 AS SELECT xmlpi(name foo, 'bar');
 CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version no value, standalone yes);
 CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
 CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
-SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
+SELECT table_name, view_definition FROM information_schema.views
+  WHERE table_name LIKE 'xmlview%' ORDER BY 1;
  table_name |                                                        view_definition                                                         
 ------------+--------------------------------------------------------------------------------------------------------------------------------
  xmlview1   | SELECT xmlcomment('test'::text) AS xmlcomment;
index 899ed4cd266c3fe5f9d15bc548751d2d435b88e2..95b9d736151283ab52fc4ef7f8c7f8923e0de7cc 100644 (file)
@@ -189,7 +189,8 @@ CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
 ERROR:  no XML support in this installation
 CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
 ERROR:  no XML support in this installation
-SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
+SELECT table_name, view_definition FROM information_schema.views
+  WHERE table_name LIKE 'xmlview%' ORDER BY 1;
  table_name |                                view_definition                                
 ------------+-------------------------------------------------------------------------------
  xmlview1   | SELECT xmlcomment('test'::text) AS xmlcomment;
index 2f919fb42a015c69b5d6bf61d136ec958297cd69..6ed9d8c47a215a8c71aee6b8d5ca109619011279 100644 (file)
@@ -142,4 +142,5 @@ CREATE VIEW xmlview7 AS SELECT xmlroot(xml '<foo/>', version no value, standalon
 CREATE VIEW xmlview8 AS SELECT xmlserialize(content 'good' as char(10));
 CREATE VIEW xmlview9 AS SELECT xmlserialize(content 'good' as text);
 
-SELECT table_name, view_definition FROM information_schema.views WHERE table_name LIKE 'xmlview%';
+SELECT table_name, view_definition FROM information_schema.views
+  WHERE table_name LIKE 'xmlview%' ORDER BY 1;