aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <>2024-11-20 14:19:44 +0000
committerdrh <>2024-11-20 14:19:44 +0000
commitd4a65cfc51c5dffebc23d29a91cd369c36943f4c (patch)
tree43dd453d1bbcf917c6c20200783eb5c42b930598 /src/where.c
parent95669823282326526772ae51289f26aa1753e57c (diff)
downloadsqlite-d4a65cfc51c5dffebc23d29a91cd369c36943f4c.tar.gz
sqlite-d4a65cfc51c5dffebc23d29a91cd369c36943f4c.zip
Provide the sqlite3ShowWhereTerm() interface callable interactively from
a debugger, when compiling with SQLITE_DEBUG. FossilOrigin-Name: c77a4a42f2e3d16427a69295436efe36335e56e97abd0efba814092498a8dea8
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index f24cf7f76..1315a8cc3 100644
--- a/src/where.c
+++ b/src/where.c
@@ -2332,7 +2332,7 @@ static int whereInScanEst(
#endif /* SQLITE_ENABLE_STAT4 */
-#ifdef WHERETRACE_ENABLED
+#if defined(WHERETRACE_ENABLED) || defined(SQLITE_DEBUG)
/*
** Print the content of a WhereTerm object
*/
@@ -2376,6 +2376,9 @@ void sqlite3WhereTermPrint(WhereTerm *pTerm, int iTerm){
sqlite3TreeViewExpr(0, pTerm->pExpr, 0);
}
}
+void sqlite3ShowWhereTerm(WhereTerm *pTerm){
+ sqlite3WhereTermPrint(pTerm, 0);
+}
#endif
#ifdef WHERETRACE_ENABLED