From: drh Date: Sat, 29 Aug 2015 17:22:33 +0000 (+0000) Subject: Fix the build with -DSQLITE_OMIT_VIRTUALTABLE. X-Git-Tag: version-3.9.0~175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d29759288e1e744b42601aefb29ea120ae4d38e1;p=thirdparty%2Fsqlite.git Fix the build with -DSQLITE_OMIT_VIRTUALTABLE. FossilOrigin-Name: 752918def7231f7846b3e985c9953a1cc825ab6b --- diff --git a/ext/misc/json1.c b/ext/misc/json1.c index af20c691fa..aad5c57fdc 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -1397,6 +1397,7 @@ static void jsonValidFunc( sqlite3_result_int(ctx, rc); } +#ifndef SQLITE_OMIT_VIRTUALTABLE /**************************************************************************** ** The json_each virtual table ****************************************************************************/ @@ -1854,6 +1855,7 @@ static sqlite3_module jsonTreeModule = { 0, /* xRelease */ 0 /* xRollbackTo */ }; +#endif /* SQLITE_OMIT_VIRTUALTABLE */ /**************************************************************************** ** The following routine is the only publically visible identifier in this @@ -1897,6 +1899,7 @@ int sqlite3_json_init( { "json_nodecount", 1, 0, jsonNodeCountFunc }, #endif }; +#ifndef SQLITE_OMIT_VIRTUALTABLE static const struct { const char *zName; sqlite3_module *pModule; @@ -1904,6 +1907,7 @@ int sqlite3_json_init( { "json_each", &jsonEachModule }, { "json_tree", &jsonTreeModule }, }; +#endif SQLITE_EXTENSION_INIT2(pApi); (void)pzErrMsg; /* Unused parameter */ for(i=0; idb, zName, zDbase); if( p==0 ){ const char *zMsg = isView ? "no such view" : "no such table"; -#ifndef SQLITE_OMIT_VIRTUAL_TABLE +#ifndef SQLITE_OMIT_VIRTUALTABLE /* If zName is the not the name of a table in the schema created using ** CREATE, then check to see if it is the name of an virtual table that ** can be an eponymous virtual table. */