diff options
author | drh <> | 2024-11-20 14:19:44 +0000 |
---|---|---|
committer | drh <> | 2024-11-20 14:19:44 +0000 |
commit | d4a65cfc51c5dffebc23d29a91cd369c36943f4c (patch) | |
tree | 43dd453d1bbcf917c6c20200783eb5c42b930598 /src | |
parent | 95669823282326526772ae51289f26aa1753e57c (diff) | |
download | sqlite-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')
-rw-r--r-- | src/treeview.c | 4 | ||||
-rw-r--r-- | src/where.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c index de6716122..865de9991 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -1302,6 +1302,10 @@ void sqlite3TreeViewTrigger( ** accessible to the debugging, and to avoid warnings about unused ** functions. But these routines only exist in debugging builds, so they ** do not contaminate the interface. +** +** See Also: +** +** sqlite3ShowWhereTerm() in where.c */ void sqlite3ShowExpr(const Expr *p){ sqlite3TreeViewExpr(0,p,0); } void sqlite3ShowExprList(const ExprList *p){ sqlite3TreeViewExprList(0,p,0,0);} 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 |