diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index ca98d3140..d6dc0c79e 100644 --- a/src/main.c +++ b/src/main.c @@ -2936,12 +2936,13 @@ int sqlite3_test_control(int op, ...){ break; } +#if defined(SQLITE_ENABLE_TREE_EXPLAIN) /* sqlite3_test_control(SQLITE_TESTCTRL_EXPLAIN_STMT, ** sqlite3_stmt*,const char**); ** - ** If compiled with SQLITE_DEBUG, each sqlite3_stmt holds a string that - ** describes the optimized parse tree. This test-control returns a - ** pointer to that string. + ** If compiled with SQLITE_ENABLE_TREE_EXPLAIN, each sqlite3_stmt holds + ** a string that describes the optimized parse tree. This test-control + ** returns a pointer to that string. */ case SQLITE_TESTCTRL_EXPLAIN_STMT: { sqlite3_stmt *pStmt = va_arg(ap, sqlite3_stmt*); @@ -2949,6 +2950,7 @@ int sqlite3_test_control(int op, ...){ *pzRet = sqlite3VdbeExplanation((Vdbe*)pStmt); break; } +#endif } va_end(ap); |