mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-05 04:30:38 +03:00
Automatically enable the dbstat virtual table on all new database
connections with the SQLITE_ENABLE_DBSTAT_VTAB compile-time option is used. FossilOrigin-Name: 1c9c6eaa9f75fd7b90fbf8b057656fd9e50b5060
This commit is contained in:
@@ -1920,12 +1920,6 @@ static void open_db(ShellState *p, int keepAlive){
|
||||
if( p->db==0 ){
|
||||
sqlite3_initialize();
|
||||
sqlite3_open(p->zDbFilename, &p->db);
|
||||
#ifdef SQLITE_ENABLE_DBSTAT_VTAB
|
||||
if( p->db ){
|
||||
int sqlite3_dbstat_register(sqlite3*);
|
||||
sqlite3_dbstat_register(p->db);
|
||||
}
|
||||
#endif
|
||||
globalDb = p->db;
|
||||
if( p->db && sqlite3_errcode(p->db)==SQLITE_OK ){
|
||||
sqlite3_create_function(p->db, "shellstatic", 0, SQLITE_UTF8, 0,
|
||||
|
||||
Reference in New Issue
Block a user