diff options
author | drh <drh@noemail.net> | 2015-11-24 21:23:59 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-11-24 21:23:59 +0000 |
commit | 8b4a94adc1dea3254a7eed1e33c210509c496e2d (patch) | |
tree | fcc90ca3de6ae8a10e20ee885682b4a7e9194449 /src/func.c | |
parent | ff7b22b714eb6202412b7b0aa5bc81fdbaad43c0 (diff) | |
download | sqlite-8b4a94adc1dea3254a7eed1e33c210509c496e2d.tar.gz sqlite-8b4a94adc1dea3254a7eed1e33c210509c496e2d.zip |
Add the sqlite3_strlike() interface, which might be useful for implementing
LIKE operators on virtual tables.
FossilOrigin-Name: e70ec71d6883f2f8fc75301ff985bccb5aa06127
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/func.c b/src/func.c index 8ea116932..b134c1a7c 100644 --- a/src/func.c +++ b/src/func.c @@ -764,6 +764,13 @@ int sqlite3_strglob(const char *zGlobPattern, const char *zString){ } /* +** The sqlite3_strlike() interface. +*/ +int sqlite3_strlike(const char *zPattern, const char *zStr, unsigned int esc){ + return patternCompare((u8*)zPattern, (u8*)zStr, &likeInfoNorm, esc)==0; +} + +/* ** Count the number of times that the LIKE operator (or GLOB which is ** just a variation of LIKE) gets called. This is used for testing ** only. |