Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit13a5771

Browse files
committed
Prohibit creating ICU collation with different ctype
ICU does not support "collate" and "ctype" being different, so thecollctype catalog column is ignored. But for catalog neatness, ensurethat they are the same.
1 parent7d4a183 commit13a5771

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/backend/utils/adt/pg_locale.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,11 @@ pg_newlocale_from_collation(Oid collid)
13541354
UCollator*collator;
13551355
UErrorCodestatus;
13561356

1357+
if (strcmp(collcollate,collctype)!=0)
1358+
ereport(ERROR,
1359+
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1360+
errmsg("collations with different collate and ctype values are not supported by ICU")));
1361+
13571362
status=U_ZERO_ERROR;
13581363
collator=ucol_open(collcollate,&status);
13591364
if (U_FAILURE(status))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp