mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 00:01:20 -04:00
Add a test for UCS_BASIC collation
This commit is contained in:
parent
cd42785974
commit
012ee84259
@ -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');
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user