Skip to content

Commit bc965e8

Browse files
committed
Compare escaped chars case insensitively for ILIKE - per gripe from TGL.
1 parent b1e929f commit bc965e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/like_match.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
2020
*
2121
* IDENTIFICATION
22-
* $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.22 2008/09/26 02:16:40 tgl Exp $
22+
* $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.23 2008/09/27 16:53:54 adunstan Exp $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -103,7 +103,7 @@ MatchText(char *t, int tlen, char *p, int plen)
103103
ereport(ERROR,
104104
(errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
105105
errmsg("LIKE pattern must not end with escape character")));
106-
if (*p != *t)
106+
if (TCHAR(*p) != TCHAR(*t))
107107
return LIKE_FALSE;
108108
}
109109
else if (*p == '%')

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