Commit bc965e84 authored by Andrew Dunstan's avatar Andrew Dunstan

Compare escaped chars case insensitively for ILIKE - per gripe from TGL.

parent b1e929f2
......@@ -19,7 +19,7 @@
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.22 2008/09/26 02:16:40 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/like_match.c,v 1.23 2008/09/27 16:53:54 adunstan Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -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 == '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment