From: Andrew Dunstan Date: Sat, 27 Sep 2008 16:57:43 +0000 (+0000) Subject: Compare escaped chars case insensitively for ILIKE - per gripe from TGL. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=0d25f6117aee78ba80913f9e9f1b74dde2cd65a1;p=users%2Fbernd%2Fpostgres.git Compare escaped chars case insensitively for ILIKE - per gripe from TGL. --- diff --git a/src/backend/utils/adt/like_match.c b/src/backend/utils/adt/like_match.c index 91e5778b38..51ea438797 100644 --- a/src/backend/utils/adt/like_match.c +++ b/src/backend/utils/adt/like_match.c @@ -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 == '%')