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-Tag: recoveryinfrav9~605 X-Git-Url: http://git.postgresql.org/gitweb/irc:/static/gitweb.js?a=commitdiff_plain;h=a8bd91b16b4ad45362b69a6b529b334054752255;p=users%2Fsimon%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 aad02d27e3..ad78216eb3 100644 --- a/src/backend/utils/adt/like_match.c +++ b/src/backend/utils/adt/like_match.c @@ -103,7 +103,7 @@ MatchText(char *t, int tlen, char *p, int plen) ereport(ERROR, (errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE), errmsg("LIKE pattern must not end with escape character"))); - if (*p != *t) + if (TCHAR(*p) != TCHAR(*t)) return LIKE_FALSE; } else if (*p == '%')