diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 | ||||
-rw-r--r-- | src/shell.c.in | 1 | ||||
-rw-r--r-- | src/sqlite.h.in | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index e79d67613..23010d5fc 100644 --- a/src/main.c +++ b/src/main.c @@ -3365,6 +3365,9 @@ static int openDatabase( #if defined(SQLITE_DEFAULT_LEGACY_ALTER_TABLE) | SQLITE_LegacyAlter #endif +#if defined(SQLITE_ENABLE_STMT_SCANSTATUS) + | SQLITE_StmtScanStatus +#endif ; sqlite3HashInit(&db->aCollSeq); #ifndef SQLITE_OMIT_VIRTUALTABLE diff --git a/src/shell.c.in b/src/shell.c.in index c2da3dbb3..944f65562 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -5309,6 +5309,7 @@ static void open_db(ShellState *p, int openFlags){ } exit(1); } + sqlite3_db_config(p->db, SQLITE_DBCONFIG_STMT_SCANSTATUS, (int)0, (int*)0); #ifndef SQLITE_OMIT_LOAD_EXTENSION sqlite3_enable_load_extension(p->db, 1); diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 03e4862cc..9dd023821 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -2464,7 +2464,7 @@ struct sqlite3_mem_methods { ** a flag that enables collection of the sqlite3_stmt_scanstatus_v2() ** statistics. For statistics to be collected, the flag must be set on ** the database handle both when the SQL statement is prepared and when it -** is stepped. The flag is clear (collection of statistics is disabled) +** is stepped. The flag is set (collection of statistics is enabled) ** by default. ** </dl> */ |