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

Commitff33df2

Browse files
committed
Fix missed case for builtin collation provider.
A missed check for the builtin collation provider could result infalling through to call isalpha().This does not appear to have practical consequences because it onlyhappens for characters in the ASCII range. Regardless, the builtinprovider should not be calling libc functions, so backpatch.Discussion:https://postgr.es/m/1bd5a0a5192f82c22ee7527e825b18ab0028b2c7.camel@j-davis.comBackpatch-through: 17
1 parent912d15c commitff33df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ pattern_char_isalpha(char c, bool is_multibyte,
15051505
return (c >='A'&&c <='Z')|| (c >='a'&&c <='z');
15061506
elseif (is_multibyte&&IS_HIGHBIT_SET(c))
15071507
return true;
1508-
elseif (locale&&locale->provider==COLLPROVIDER_ICU)
1508+
elseif (locale&&locale->provider!=COLLPROVIDER_LIBC)
15091509
returnIS_HIGHBIT_SET(c)||
15101510
(c >='A'&&c <='Z')|| (c >='a'&&c <='z');
15111511
elseif (locale&&locale->provider==COLLPROVIDER_LIBC)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp