aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-10-08 19:29:18 +0000
committerdrh <drh@noemail.net>2015-10-08 19:29:18 +0000
commit50065656f7d038d8b1796edb83ecaa5347da5a1d (patch)
treed2909fb64acc6a0187d2c4b4941b92222c125cb6 /src/main.c
parentd7fd6aa4ba568e33e9879f94a8542fba0d7be828 (diff)
downloadsqlite-50065656f7d038d8b1796edb83ecaa5347da5a1d.tar.gz
sqlite-50065656f7d038d8b1796edb83ecaa5347da5a1d.zip
First attempt to add json1 and fts5 to the amalgamation. This check-in does
not compile. FossilOrigin-Name: d820a1bd1b8dd702d1b3a099af393530cc5a5d51
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fa374c701..43d2efcfe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2872,12 +2872,19 @@ static int openDatabase(
}
#endif
-#ifdef SQLITE_ENABLE_FTS3
+#ifdef SQLITE_ENABLE_FTS3 /* automatically defined by SQLITE_ENABLE_FTS4 */
if( !db->mallocFailed && rc==SQLITE_OK ){
rc = sqlite3Fts3Init(db);
}
#endif
+#ifdef SQLITE_ENABLE_FTS5
+ if( !db->mallocFailed && rc==SQLITE_OK ){
+ extern int sqlite3Fts5Init(sqlite3*);
+ rc = sqlite3Fts5Init(db);
+ }
+#endif
+
#ifdef SQLITE_ENABLE_ICU
if( !db->mallocFailed && rc==SQLITE_OK ){
rc = sqlite3IcuInit(db);