Skip to content

Commit 012ee84

Browse files
committed
Add a test for UCS_BASIC collation
1 parent cd42785 commit 012ee84

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

src/test/regress/expected/collate.icu.utf8.out

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,16 @@ select textrange_en_us('A','Z') @> 'b'::text;
11411141

11421142
drop type textrange_c;
11431143
drop type textrange_en_us;
1144+
-- standard collations
1145+
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
1146+
a | b
1147+
---+-----
1148+
4 | ABC
1149+
1 | abc
1150+
3 | bbc
1151+
2 | äbc
1152+
(4 rows)
1153+
11441154
-- test ICU collation customization
11451155
-- test the attributes handled by icu_set_collation_attributes()
11461156
CREATE COLLATION testcoll_ignore_accents (provider = icu, locale = '@colStrength=primary;colCaseLevel=yes');

src/test/regress/expected/collate.linux.utf8.out

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,16 @@ select textrange_en_us('A','Z') @> 'b'::text;
11541154

11551155
drop type textrange_c;
11561156
drop type textrange_en_us;
1157+
-- standard collations
1158+
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
1159+
a | b
1160+
---+-----
1161+
4 | ABC
1162+
1 | abc
1163+
3 | bbc
1164+
2 | äbc
1165+
(4 rows)
1166+
11571167
-- nondeterministic collations
11581168
-- (not supported with libc provider)
11591169
CREATE COLLATION ctest_det (locale = 'en_US.utf8', deterministic = true);

src/test/regress/sql/collate.icu.utf8.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@ drop type textrange_c;
444444
drop type textrange_en_us;
445445

446446

447+
-- standard collations
448+
449+
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
450+
451+
447452
-- test ICU collation customization
448453

449454
-- test the attributes handled by icu_set_collation_attributes()

src/test/regress/sql/collate.linux.utf8.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ drop type textrange_c;
447447
drop type textrange_en_us;
448448

449449

450+
-- standard collations
451+
452+
SELECT * FROM collate_test2 ORDER BY b COLLATE UCS_BASIC;
453+
454+
450455
-- nondeterministic collations
451456
-- (not supported with libc provider)
452457

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy