aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-22 23:59:06 +0000
committerdrh <drh@noemail.net>2013-04-22 23:59:06 +0000
commit16fb176814bd2b8fe46f7ed0e50a0b3d33db89a0 (patch)
tree95791389bfc2d16f158af35b89e36fd39b23cc53 /src/func.c
parent8bc8bfcb05ab15cac3c84b137b572350beb4de65 (diff)
parentda8caa0b2da85ebaf75fce1b19f5d645246f3eba (diff)
downloadsqlite-16fb176814bd2b8fe46f7ed0e50a0b3d33db89a0.tar.gz
sqlite-16fb176814bd2b8fe46f7ed0e50a0b3d33db89a0.zip
Merge the latest trunk changes into the sessions branch.
FossilOrigin-Name: 6994826c0784280f2e9728dfa4185848846d03df
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/func.c b/src/func.c
index 0fce95904..e40fdad55 100644
--- a/src/func.c
+++ b/src/func.c
@@ -694,6 +694,13 @@ static int patternCompare(
}
/*
+** The sqlite3_strglob() interface.
+*/
+int sqlite3_strglob(const char *zGlobPattern, const char *zString){
+ return patternCompare((u8*)zGlobPattern, (u8*)zString, &globInfo, 0)==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.