diff options
author | drh <> | 2021-05-04 18:24:56 +0000 |
---|---|---|
committer | drh <> | 2021-05-04 18:24:56 +0000 |
commit | 23634898c5835e5523331652702c75a25fa55de5 (patch) | |
tree | 67c5c455cd20de8c8c349227ede228eb7f4eed1a /src | |
parent | 6068b6b451bd14462f006ea5e9134a43581660da (diff) | |
download | sqlite-23634898c5835e5523331652702c75a25fa55de5.tar.gz sqlite-23634898c5835e5523331652702c75a25fa55de5.zip |
Also for the 0x20000 bit of ".wheretrace", show when WHERE clause terms are
disabled.
FossilOrigin-Name: 625fb253eecd6c10fce5d0127d516361df0c1d1661502b396fc418dcdb4ae999
Diffstat (limited to 'src')
-rw-r--r-- | src/wherecode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 6b4bc8a21..157596db4 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -297,6 +297,12 @@ static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm){ }else{ pTerm->wtFlags |= TERM_CODED; } +#ifdef WHERETRACE_ENABLED + if( sqlite3WhereTrace & 0x20000 ){ + sqlite3DebugPrintf("DISABLE-"); + sqlite3WhereTermPrint(pTerm, (int)(pTerm - (pTerm->pWC->a))); + } +#endif if( pTerm->iParent<0 ) break; pTerm = &pTerm->pWC->a[pTerm->iParent]; assert( pTerm!=0 ); |