Make tests pass with or without locale.
authorPeter Eisentraut <[email protected]>
Sun, 11 Jan 2009 09:41:45 +0000 (09:41 +0000)
committerPeter Eisentraut <[email protected]>
Sun, 11 Jan 2009 09:41:45 +0000 (09:41 +0000)
src/test/regress/expected/foreign_data.out
src/test/regress/sql/foreign_data.sql

index bbd1f015e392f4bd2b6da5ca75985bb6fcb90cb9..35dcae672b441134233a60239f36d2779e43ceb1 100644 (file)
@@ -667,25 +667,25 @@ SELECT * FROM information_schema.foreign_server_options ORDER BY 1, 2, 3;
  regression             | s8                  | dbname          | db1
 (6 rows)
 
-SELECT * FROM information_schema.user_mappings ORDER BY 1, 2, 3;
+SELECT * FROM information_schema.user_mappings ORDER BY lower(authorization_identifier), 2, 3;
  authorization_identifier | foreign_server_catalog | foreign_server_name 
 --------------------------+------------------------+---------------------
+ foreign_data_user        | regression             | s4
+ foreign_data_user        | regression             | s8
  PUBLIC                   | regression             | s4
  PUBLIC                   | regression             | s8
  PUBLIC                   | regression             | st1
- foreign_data_user        | regression             | s4
- foreign_data_user        | regression             | s8
  regress_test_role        | regression             | s5
  regress_test_role        | regression             | s6
  regress_test_role        | regression             | st1
 (8 rows)
 
-SELECT * FROM information_schema.user_mapping_options ORDER BY 1, 2, 3, 4;
+SELECT * FROM information_schema.user_mapping_options ORDER BY lower(authorization_identifier), 2, 3, 4;
  authorization_identifier | foreign_server_catalog | foreign_server_name | option_name | option_value 
 --------------------------+------------------------+---------------------+-------------+--------------
+ foreign_data_user        | regression             | s8                  | password    | public
  PUBLIC                   | regression             | s4                  | mapping     | is public
  PUBLIC                   | regression             | st1                 | modified    | 1
- foreign_data_user        | regression             | s8                  | password    | public
  regress_test_role        | regression             | s5                  | modified    | 1
  regress_test_role        | regression             | s6                  | username    | test
  regress_test_role        | regression             | st1                 | password    | boo
index 946df17d1c5405b7c2a59c6c862e42cebb7fb774..1424fc68f08c6d490e1d2ca40dd749dfd7be79b2 100644 (file)
@@ -264,8 +264,8 @@ SELECT * FROM information_schema.foreign_data_wrappers ORDER BY 1, 2;
 SELECT * FROM information_schema.foreign_data_wrapper_options ORDER BY 1, 2, 3;
 SELECT * FROM information_schema.foreign_servers ORDER BY 1, 2;
 SELECT * FROM information_schema.foreign_server_options ORDER BY 1, 2, 3;
-SELECT * FROM information_schema.user_mappings ORDER BY 1, 2, 3;
-SELECT * FROM information_schema.user_mapping_options ORDER BY 1, 2, 3, 4;
+SELECT * FROM information_schema.user_mappings ORDER BY lower(authorization_identifier), 2, 3;
+SELECT * FROM information_schema.user_mapping_options ORDER BY lower(authorization_identifier), 2, 3, 4;
 SELECT * FROM information_schema.usage_privileges WHERE object_type LIKE 'FOREIGN%' ORDER BY 1, 2, 3, 4, 5;
 SELECT * FROM information_schema.role_usage_grants WHERE object_type LIKE 'FOREIGN%' ORDER BY 1, 2, 3, 4, 5;
 SET ROLE regress_test_role;