index b7b93959de995106055328b0e5e5a14985ff09a2..d99ba22431d6f74344b4c306df098bc20a50df68 100644 (file)
drop type textrange_en_us;
-- nondeterministic collations
-- (not supported with libc provider)
-CREATE COLLATION ctest_det (locale = 'en_US', deterministic = true);
+do $$
+BEGIN
+ EXECUTE 'CREATE COLLATION ctest_det (locale = ' ||
+ quote_literal((SELECT collcollate FROM pg_collation WHERE
+ collname = 'en_US')) || ', deterministic = true);';
+ END
+$$;
CREATE COLLATION ctest_nondet (locale = 'en_US', deterministic = false);
ERROR: nondeterministic collations not supported with this provider
-- cleanup
index 353d769a5bdbdc0700cb8afa392eafeaef1c7f44..c7d6c97db1622750d1c5d994f60c2c20fc1a9f02 100644 (file)
-- nondeterministic collations
-- (not supported with libc provider)
-
-CREATE COLLATION ctest_det (locale = 'en_US', deterministic = true);
+do $$
+BEGIN
+ EXECUTE 'CREATE COLLATION ctest_det (locale = ' ||
+ quote_literal((SELECT collcollate FROM pg_collation WHERE
+ collname = 'en_US')) || ', deterministic = true);';
+ END
+$$;
CREATE COLLATION ctest_nondet (locale = 'en_US', deterministic = false);