aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2008-09-27 16:57:43 +0000
committerAndrew Dunstan <andrew@dunslane.net>2008-09-27 16:57:43 +0000
commitef6f3426447d4e0a5901921bfa5876b5e586afdb (patch)
tree1a68e8cdd7ec9abc317cb494212e1d91e83cff16 /src
parent7ef00979980b964456577454e4e0e5076d284970 (diff)
downloadpostgresql-ef6f3426447d4e0a5901921bfa5876b5e586afdb.tar.gz
postgresql-ef6f3426447d4e0a5901921bfa5876b5e586afdb.zip
Compare escaped chars case insensitively for ILIKE - per gripe from TGL.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/like_match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/like_match.c b/src/backend/utils/adt/like_match.c
index 30d52d62c42..8d32cce449c 100644
--- a/src/backend/utils/adt/like_match.c
+++ b/src/backend/utils/adt/like_match.c
@@ -19,7 +19,7 @@
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.20.2.1 2008/03/01 03:26:44 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.20.2.2 2008/09/27 16:57:43 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
@@ -98,7 +98,7 @@ MatchText(char *t, int tlen, char *p, int plen)
{
/* Next byte must match literally, whatever it is */
NextByte(p, plen);
- if ((plen <= 0) || *p != *t)
+ if ((plen <= 0) || TCHAR(*p) != TCHAR(*t))
return LIKE_FALSE;
}
else if (*p == '%')