|
19 | 19 | * Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
20 | 20 | *
|
21 | 21 | * 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/2716:53:54 adunstan Exp $ |
23 | 23 | *
|
24 | 24 | *-------------------------------------------------------------------------
|
25 | 25 | */
|
@@ -103,7 +103,7 @@ MatchText(char *t, int tlen, char *p, int plen)
|
103 | 103 | ereport(ERROR,
|
104 | 104 | (errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
|
105 | 105 | errmsg("LIKE pattern must not end with escape character")));
|
106 |
| -if (*p!=*t) |
| 106 | +if (TCHAR(*p)!=TCHAR(*t)) |
107 | 107 | returnLIKE_FALSE;
|
108 | 108 | }
|
109 | 109 | elseif (*p=='%')
|
|