mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
In the WHERE clause debugging output (the .wheretrace output) show the
parent index of any WhereTerm that is a child. FossilOrigin-Name: 7fc733328c5914c747e048c830522ec13e433c0a86388bae47b198a3e220c6c2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user