Index: src/test1.c ================================================================== --- src/test1.c +++ src/test1.c @@ -11,11 +11,11 @@ ************************************************************************* ** Code for testing the printf() interface to SQLite. This code ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test1.c,v 1.161 2005/09/19 12:37:28 drh Exp $ +** $Id: test1.c,v 1.162 2005/09/19 13:15:23 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" #include "os.h" #include @@ -3178,17 +3178,19 @@ extern int sqlite3_where_trace; extern int sqlite3_sync_count, sqlite3_fullsync_count; extern int sqlite3_opentemp_count; extern int sqlite3_memUsed; extern int sqlite3_memMax; - extern char sqlite3_query_plan[]; extern int sqlite3_like_count; #if OS_WIN extern int sqlite3_os_type; #endif #ifdef SQLITE_DEBUG extern int sqlite3_vdbe_addop_trace; +#endif +#ifdef SQLITE_TEST + extern char sqlite3_query_plan[]; static char *query_plan = sqlite3_query_plan; #endif for(i=0; iiMem+j+1, 0); } } } -#if defined(SQLITE_TEST) || defined(SQLITE_DEBUG) +#if defined(SQLITE_TEST) /* ** The following variable holds a text description of query plan generated ** by the most recent call to sqlite3WhereBegin(). Each call to WhereBegin ** overwrites the previous. This information is used for testing and ** analysis only.