diff options
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 6556e5ad6..3e9c98664 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -3706,6 +3706,7 @@ static int db_last_stmt_ptr( } #endif /* SQLITE_TEST */ +#if defined(SQLITE_TEST) || defined(SQLITE_ENABLE_DBSTAT_VTAB) /* ** tclcmd: register_dbstat_vtab DB ** @@ -3740,6 +3741,7 @@ static int sqlite3RegisterDbstatCmd( return TCL_OK; #endif /* SQLITE_OMIT_VIRTUALTABLE */ } +#endif /* defined(SQLITE_TEST) || defined(SQLITE_ENABLE_DBSTAT_VTAB) */ /* ** Configure the interpreter passed as the first argument to have access @@ -3763,7 +3765,7 @@ static void init_all(Tcl_Interp *interp){ ** of virtual table dbstat (source file test_stat.c). This command is ** required for testfixture and sqlite3_analyzer, but not by the production ** Tcl extension. */ -#if defined(SQLITE_TEST) || TCLSH==2 +#if defined(SQLITE_TEST) || defined(SQLITE_ENABLE_DBSTAT_VTAB) Tcl_CreateObjCommand( interp, "register_dbstat_vtab", sqlite3RegisterDbstatCmd, 0, 0 ); |