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

Commit4eb5089

Browse files
committed
Remove dead code
Aftere9931bf, the locale argument of SB_lower_char() is neverNULL, so the branch that deals with NULL can be removed (similar tohowe9931bf for example removed those branches in str_tolower()).Reviewed-by: Jeff Davis <pgsql@j-davis.com>Discussion:https://www.postgresql.org/message-id/4f562d84-87f4-44dc-8946-01d6c437936f@eisentraut.org
1 parentf1976df commit4eb5089

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ SB_lower_char(unsigned char c, pg_locale_t locale, bool locale_is_c)
9595
{
9696
if (locale_is_c)
9797
returnpg_ascii_tolower(c);
98-
elseif (locale)
99-
returntolower_l(c,locale->info.lt);
10098
else
101-
returnpg_tolower(c);
99+
returntolower_l(c,locale->info.lt);
102100
}
103101

104102

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp