aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ctime.c6
-rw-r--r--src/main.c9
-rw-r--r--src/shell.c7
3 files changed, 14 insertions, 8 deletions
diff --git a/src/ctime.c b/src/ctime.c
index 9503214f5..17dd710bc 100644
--- a/src/ctime.c
+++ b/src/ctime.c
@@ -96,12 +96,18 @@ static const char * const azCompileOpt[] = {
#if SQLITE_ENABLE_FTS4
"ENABLE_FTS4",
#endif
+#if SQLITE_ENABLE_FTS5
+ "ENABLE_FTS5",
+#endif
#if SQLITE_ENABLE_ICU
"ENABLE_ICU",
#endif
#if SQLITE_ENABLE_IOTRACE
"ENABLE_IOTRACE",
#endif
+#if SQLITE_ENABLE_JSON1
+ "ENABLE_JSON1",
+#endif
#if SQLITE_ENABLE_LOAD_EXTENSION
"ENABLE_LOAD_EXTENSION",
#endif
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);
diff --git a/src/shell.c b/src/shell.c
index 96d0ab65f..f79087122 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -4654,13 +4654,6 @@ int SQLITE_CDECL main(int argc, char **argv){
}
data.out = stdout;
-#ifdef SQLITE_SHELL_JSON1
- {
- extern int sqlite3_json_init(sqlite3*);
- sqlite3_auto_extension((void(*)(void))sqlite3_json_init);
- }
-#endif
-
/* Go ahead and open the database file if it already exists. If the
** file does not exist, delay opening it. This prevents empty database
** files from being created if a user mistypes the database name argument