Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc965e8

Browse files
committed
Compare escaped chars case insensitively for ILIKE - per gripe from TGL.
1 parentb1e929f commitbc965e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/like_match.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Copyright (c) 1996-2008, PostgreSQL Global Development Group
2020
*
2121
* 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 $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -103,7 +103,7 @@ MatchText(char *t, int tlen, char *p, int plen)
103103
ereport(ERROR,
104104
(errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
105105
errmsg("LIKE pattern must not end with escape character")));
106-
if (*p!=*t)
106+
if (TCHAR(*p)!=TCHAR(*t))
107107
returnLIKE_FALSE;
108108
}
109109
elseif (*p=='%')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp