diff options
author | dan <Dan Kennedy> | 2023-03-03 21:17:12 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2023-03-03 21:17:12 +0000 |
commit | 3410e550dcc82f2bcceac2cf01174621ab6e9c2a (patch) | |
tree | 38f1fa985a26fd3143ff52d319ab4ea31ea26a54 /src | |
parent | fe5261592593ce9eabfb57a32fbe17dfc9deec0f (diff) | |
download | sqlite-3410e550dcc82f2bcceac2cf01174621ab6e9c2a.tar.gz sqlite-3410e550dcc82f2bcceac2cf01174621ab6e9c2a.zip |
Make the SQLITE_DBCONFIG_STMT_SCANSTATUS option on by default.
FossilOrigin-Name: 5a09191186bc03b374e0c0d029e1a15208c6b845bc2f5f5f9f6a8a882809d9f3
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> */ |