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

Commita75f780

Browse files
feodorvbwagner
authored andcommitted
Fix collation check in ICU-enabled build
1 parent901b585 commita75f780

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,14 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
15741574
#ifdefUSE_ICU
15751575
elseif (pg_database_encoding_max_length()>1)
15761576
{
1577+
/*
1578+
* check collation as it done for regular way
1579+
*/
1580+
if (collid!=DEFAULT_COLLATION_OID&& !OidIsValid(collid))
1581+
ereport(ERROR,
1582+
(errcode(ERRCODE_INDETERMINATE_COLLATION),
1583+
errmsg("could not determine which collation to use for string comparison"),
1584+
errhint("Use the COLLATE clause to set the collation explicitly.")));
15771585
result=strcmp_icu(arg1,len1,arg2,len2);
15781586
}
15791587
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp