aboutsummaryrefslogtreecommitdiff
path: root/src/test1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test1.c')
-rw-r--r--src/test1.c8
1 files changed, 7 insertions, 1 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 },