Skip to content

Commit a459ac5

Browse files
committed
Remove unnecessary check for NULL locale, per Coverity.
Discussion: https://postgr.es/m/3804933.1723394010@sss.pgh.pa.us Reported-by: Tom Lane
1 parent 1343ae9 commit a459ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/like.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Generic_Text_IC_like(text *str, text *pat, Oid collation)
201201
* way.
202202
*/
203203

204-
if (pg_database_encoding_max_length() > 1 || (locale && locale->provider == COLLPROVIDER_ICU))
204+
if (pg_database_encoding_max_length() > 1 || (locale->provider == COLLPROVIDER_ICU))
205205
{
206206
pat = DatumGetTextPP(DirectFunctionCall1Coll(lower, collation,
207207
PointerGetDatum(pat)));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy