diff options
author | drh <drh@noemail.net> | 2013-05-17 10:58:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-05-17 10:58:08 +0000 |
commit | 466af9baae3da0ac018a31237cde5dd0963bc4be (patch) | |
tree | f0d700132218dd9d4b988a332b1c2255f9e09144 /ext/misc/amatch.c | |
parent | ad1818d9ede86ed01ea5a32e55adf8dde5a18f89 (diff) | |
parent | 4c5aeecc907f4cb36247322fd181eec9d578e9db (diff) | |
download | sqlite-466af9baae3da0ac018a31237cde5dd0963bc4be.tar.gz sqlite-466af9baae3da0ac018a31237cde5dd0963bc4be.zip |
Update the sessions branch to the latest 3.7.17 beta.
FossilOrigin-Name: af8057ef5dcaa72dc0d2ab5d1553b06757449fa1
Diffstat (limited to 'ext/misc/amatch.c')
-rw-r--r-- | ext/misc/amatch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/misc/amatch.c b/ext/misc/amatch.c index f91c84f06..b61308054 100644 --- a/ext/misc/amatch.c +++ b/ext/misc/amatch.c @@ -164,6 +164,8 @@ SQLITE_EXTENSION_INIT1 #include <stdio.h> #include <ctype.h> +#ifndef SQLITE_OMIT_VIRTUALTABLE + /* ** Forward declaration of objects used by this implementation */ @@ -1458,6 +1460,8 @@ static sqlite3_module amatchModule = { 0 /* xRollbackTo */ }; +#endif /* SQLITE_OMIT_VIRTUALTABLE */ + /* ** Register the amatch virtual table */ @@ -1472,6 +1476,8 @@ int sqlite3_amatch_init( int rc = SQLITE_OK; SQLITE_EXTENSION_INIT2(pApi); (void)pzErrMsg; /* Not used */ +#ifndef SQLITE_OMIT_VIRTUALTABLE rc = sqlite3_create_module(db, "approximate_match", &amatchModule, 0); +#endif /* SQLITE_OMIT_VIRTUALTABLE */ return rc; } |