Add a test for UCS_BASIC collation

This commit is contained in:
Peter Eisentraut 2023-03-10 11:00:51 +01:00
parent cd42785974
commit 012ee84259
4 changed files with 30 additions and 0 deletions

View File

@ -1141,6 +1141,16 @@ select textrange_en_us('A','Z') @> 'b'::text;
drop type textrange_c;
drop type textrange_en_us;
-- standard collations
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
a | b
---+-----
4 | ABC
1 | abc
3 | bbc
2 | äbc
(4 rows)
-- test ICU collation customization
-- test the attributes handled by icu_set_collation_attributes()
CREATE COLLATION testcoll_ignore_accents (provider = icu, locale = '@colStrength=primary;colCaseLevel=yes');

View File

@ -1154,6 +1154,16 @@ select textrange_en_us('A','Z') @> 'b'::text;
drop type textrange_c;
drop type textrange_en_us;
-- standard collations
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
a | b
---+-----
4 | ABC
1 | abc
3 | bbc
2 | äbc
(4 rows)
-- nondeterministic collations
-- (not supported with libc provider)
CREATE COLLATION ctest_det (locale = 'en_US.utf8', deterministic = true);

View File

@ -444,6 +444,11 @@ drop type textrange_c;
drop type textrange_en_us;
-- standard collations
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
-- test ICU collation customization
-- test the attributes handled by icu_set_collation_attributes()

View File

@ -447,6 +447,11 @@ drop type textrange_c;
drop type textrange_en_us;
-- standard collations
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
-- nondeterministic collations
-- (not supported with libc provider)