Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 012ee84

Browse filesBrowse files
committed
Add a test for UCS_BASIC collation
1 parent cd42785 commit 012ee84
Copy full SHA for 012ee84

File tree

Expand file treeCollapse file tree

4 files changed

+30
-0
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+30
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/test/regress/expected/collate.icu.utf8.out
+10Lines 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

Copy file name to clipboardExpand all lines: src/test/regress/expected/collate.linux.utf8.out
+10Lines 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

Copy file name to clipboardExpand all lines: src/test/regress/sql/collate.icu.utf8.sql
+5Lines 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

Copy file name to clipboardExpand all lines: src/test/regress/sql/collate.linux.utf8.sql
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.