aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-05-05 00:48:23 +0000
committerdrh <drh@noemail.net>2015-05-05 00:48:23 +0000
commit8f70ee0e93af6f3e0bd0c3d73227e472fe330ea2 (patch)
tree4ccb9ef3fd64343d0d11623439d0b6574f7f3a93 /src/tclsqlite.c
parenta3ab9d0c6187230290cf8063e98d13c866224f13 (diff)
downloadsqlite-8f70ee0e93af6f3e0bd0c3d73227e472fe330ea2.tar.gz
sqlite-8f70ee0e93af6f3e0bd0c3d73227e472fe330ea2.zip
Fix #ifdef problem in tclsqlite.c.
FossilOrigin-Name: fe723bb5d5fa9522411c06dcee8bf1a8fd210db3
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c4
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
);