Fixes to allow testfixture to be compiled with SQLITE_OMIT_VIRTUAL_TABLE defined.

FossilOrigin-Name: 00231fb0127960d700de3549e34e82f8ec1b5819
This commit is contained in:
dan
2013-05-15 18:34:17 +00:00
parent 6fdd3d8aa0
commit 11f71d6ae4
8 changed files with 37 additions and 15 deletions
+6
View File
@@ -148,6 +148,8 @@ SQLITE_EXTENSION_INIT1
#include <stdio.h>
#include <ctype.h>
#ifndef SQLITE_OMIT_VIRTUALTABLE
/*
** Forward declaration of objects used by this implementation
*/
@@ -923,6 +925,8 @@ static sqlite3_module closureModule = {
0 /* xRollbackTo */
};
#endif /* SQLITE_OMIT_VIRTUALTABLE */
/*
** Register the closure virtual table
*/
@@ -937,6 +941,8 @@ int sqlite3_closure_init(
int rc = SQLITE_OK;
SQLITE_EXTENSION_INIT2(pApi);
(void)pzErrMsg;
#ifndef SQLITE_OMIT_VIRTUALTABLE
rc = sqlite3_create_module(db, "transitive_closure", &closureModule, 0);
#endif /* SQLITE_OMIT_VIRTUALTABLE */
return rc;
}