File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -992,7 +992,13 @@ drop type textrange_c;
992
992
drop type textrange_en_us;
993
993
-- nondeterministic collations
994
994
-- (not supported with libc provider)
995
- CREATE COLLATION ctest_det (locale = 'en_US', deterministic = true);
995
+ do $$
996
+ BEGIN
997
+ EXECUTE 'CREATE COLLATION ctest_det (locale = ' ||
998
+ quote_literal((SELECT collcollate FROM pg_collation WHERE
999
+ collname = 'en_US')) || ', deterministic = true);';
1000
+ END
1001
+ $$;
996
1002
CREATE COLLATION ctest_nondet (locale = 'en_US', deterministic = false);
997
1003
ERROR: nondeterministic collations not supported with this provider
998
1004
-- cleanup
Original file line number Diff line number Diff line change @@ -400,8 +400,13 @@ drop type textrange_en_us;
400
400
401
401
-- nondeterministic collations
402
402
-- (not supported with libc provider)
403
-
404
- CREATE COLLATION ctest_det (locale = ' en_US' , deterministic = true);
403
+ do $$
404
+ BEGIN
405
+ EXECUTE ' CREATE COLLATION ctest_det (locale = ' ||
406
+ quote_literal((SELECT collcollate FROM pg_collation WHERE
407
+ collname = ' en_US' )) || ' , deterministic = true);' ;
408
+ END
409
+ $$;
405
410
CREATE COLLATION ctest_nondet (locale = ' en_US' , deterministic = false);
406
411
407
412
You can’t perform that action at this time.
0 commit comments