1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Build the "stmts" virtual table into the amalgamation. It is active only

when compiled using SQLITE_ENABLE_STMTSVTAB.  That option is supplied to the
command-line shell.

FossilOrigin-Name: 0ff057d86e42e518fda22bfbf5f1977ab6bd0a74a9211ff259ee7e8a7ce98b58
This commit is contained in:
drh
2017-06-28 15:47:29 +00:00
parent 2fb960b545
commit f00f530b7d
8 changed files with 58 additions and 19 deletions

View File

@@ -28,6 +28,9 @@
#ifdef SQLITE_ENABLE_JSON1
int sqlite3Json1Init(sqlite3*);
#endif
#ifdef SQLITE_ENABLE_STMTSVTAB
int sqlite3StmtsVtabInit(sqlite3*);
#endif
#ifdef SQLITE_ENABLE_FTS5
int sqlite3Fts5Init(sqlite3*);
#endif
@@ -3058,6 +3061,12 @@ static int openDatabase(
}
#endif
#ifdef SQLITE_ENABLE_STMTSVTAB
if( !db->mallocFailed && rc==SQLITE_OK){
rc = sqlite3StmtsVtabInit(db);
}
#endif
/* -DSQLITE_DEFAULT_LOCKING_MODE=1 makes EXCLUSIVE the default locking
** mode. -DSQLITE_DEFAULT_LOCKING_MODE=0 make NORMAL the default locking
** mode. Doing nothing at all also makes NORMAL the default.