Go to the source code of this file.
◆ GETCHAR
◆ MatchText()
static int MatchText |
( |
const char * |
t, |
|
|
int |
tlen, |
|
|
const char * |
p, |
|
|
int |
plen, |
|
|
pg_locale_t |
locale, |
|
|
bool |
locale_is_c |
|
) |
| |
|
static |
Definition at line 80 of file like_match.c.
84 if (plen == 1 && *p ==
'%')
98 while (tlen > 0 && plen > 0)
107 (
errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
108 errmsg(
"LIKE pattern must not end with escape character")));
167 (
errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
168 errmsg(
"LIKE pattern must not end with escape character")));
178 int matched =
MatchText(t, tlen, p, plen,
230 while (plen > 0 && *p ==
'%')
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define NextByte(p, plen)
#define NextChar(p, plen)
static int MatchText(const char *t, int tlen, const char *p, int plen, pg_locale_t locale, bool locale_is_c)
void check_stack_depth(void)
References check_stack_depth(), ereport, errcode(), errmsg(), ERROR, GETCHAR, LIKE_ABORT, LIKE_FALSE, LIKE_TRUE, locale, NextByte, and NextChar.