aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test1.c8
-rw-r--r--src/test_config.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/src/test1.c b/src/test1.c
index 1062d87c6..f83d38ff2 100644
--- a/src/test1.c
+++ b/src/test1.c
@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
-** $Id: test1.c,v 1.316 2008/07/30 15:27:54 drh Exp $
+** $Id: test1.c,v 1.317 2008/07/31 02:05:04 shane Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -497,6 +497,8 @@ static int test_snprintf_int(
return TCL_OK;
}
+#ifndef SQLITE_OMIT_GET_TABLE
+
/*
** Usage: sqlite3_get_table_printf DB FORMAT STRING ?--no-counts?
**
@@ -559,6 +561,8 @@ static int test_get_table_printf(
return TCL_OK;
}
+#endif /* SQLITE_OMIT_GET_TABLE */
+
/*
** Usage: sqlite3_last_insert_rowid DB
@@ -4529,7 +4533,9 @@ int Sqlitetest1_Init(Tcl_Interp *interp){
{ "sqlite3_exec_printf", (Tcl_CmdProc*)test_exec_printf },
{ "sqlite3_exec", (Tcl_CmdProc*)test_exec },
{ "sqlite3_exec_nr", (Tcl_CmdProc*)test_exec_nr },
+#ifndef SQLITE_OMIT_GET_TABLE
{ "sqlite3_get_table_printf", (Tcl_CmdProc*)test_get_table_printf },
+#endif
{ "sqlite3_close", (Tcl_CmdProc*)sqlite_test_close },
{ "sqlite3_create_function", (Tcl_CmdProc*)test_create_function },
{ "sqlite3_create_aggregate", (Tcl_CmdProc*)test_create_aggregate },
diff --git a/src/test_config.c b/src/test_config.c
index b3007aa3f..fe96b291a 100644
--- a/src/test_config.c
+++ b/src/test_config.c
@@ -16,7 +16,7 @@
** The focus of this file is providing the TCL testing layer
** access to compile-time constants.
**
-** $Id: test_config.c,v 1.32 2008/07/25 15:39:04 drh Exp $
+** $Id: test_config.c,v 1.33 2008/07/31 02:05:05 shane Exp $
*/
#include "sqliteLimit.h"
@@ -243,6 +243,12 @@ static void set_options(Tcl_Interp *interp){
Tcl_SetVar2(interp, "sqlite_options", "fts3", "0", TCL_GLOBAL_ONLY);
#endif
+#ifdef SQLITE_OMIT_GET_TABLE
+ Tcl_SetVar2(interp, "sqlite_options", "gettable", "0", TCL_GLOBAL_ONLY);
+#else
+ Tcl_SetVar2(interp, "sqlite_options", "gettable", "1", TCL_GLOBAL_ONLY);
+#endif
+
#ifdef SQLITE_OMIT_GLOBALRECOVER
Tcl_SetVar2(interp, "sqlite_options", "globalrecover", "0", TCL_GLOBAL_ONLY);
#else