diff options
author | drh <drh@noemail.net> | 2019-12-22 19:41:12 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-12-22 19:41:12 +0000 |
commit | d262c2db8f6ac584d377b347a0dd810f998cbd93 (patch) | |
tree | 9593d6b3cced7140083f6a6d5571e0626ce47810 /src | |
parent | 6c1c85ca483154aafa41883253a941f196fa6d03 (diff) | |
download | sqlite-d262c2db8f6ac584d377b347a0dd810f998cbd93.tar.gz sqlite-d262c2db8f6ac584d377b347a0dd810f998cbd93.zip |
In the WHERE clause debugging output (the .wheretrace output) show the
parent index of any WhereTerm that is a child.
FossilOrigin-Name: 7fc733328c5914c747e048c830522ec13e433c0a86388bae47b198a3e220c6c2
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c index 6a05d0c4d..7d3478769 100644 --- a/src/where.c +++ b/src/where.c @@ -1762,10 +1762,12 @@ static void whereTermPrint(WhereTerm *pTerm, int iTerm){ iTerm, pTerm, zType, zLeft, pTerm->truthProb, pTerm->eOperator, pTerm->wtFlags); if( pTerm->iField ){ - sqlite3DebugPrintf(" iField=%d\n", pTerm->iField); - }else{ - sqlite3DebugPrintf("\n"); + sqlite3DebugPrintf(" iField=%d", pTerm->iField); + } + if( pTerm->iParent>=0 ){ + sqlite3DebugPrintf(" iParent=%d", pTerm->iParent); } + sqlite3DebugPrintf("\n"); sqlite3TreeViewExpr(0, pTerm->pExpr, 0); } } |