mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
In the ".wheretrace 0x100" debugging mode, show the structure of the
main parameters to sqlite3WhereBegin() calls. FossilOrigin-Name: fd598e475d353363e19adc27a671170f11ae9f6d8cad58cb2303fb2ad8ac6bec
This commit is contained in:
10
src/where.c
10
src/where.c
@@ -4769,6 +4769,16 @@ WhereInfo *sqlite3WhereBegin(
|
||||
sqlite3DebugPrintf(", limit: %d", iAuxArg);
|
||||
}
|
||||
sqlite3DebugPrintf(")\n");
|
||||
if( sqlite3WhereTrace & 0x100 ){
|
||||
Select sSelect;
|
||||
memset(&sSelect, 0, sizeof(sSelect));
|
||||
sSelect.selFlags = SF_WhereBegin;
|
||||
sSelect.pSrc = pTabList;
|
||||
sSelect.pWhere = pWhere;
|
||||
sSelect.pOrderBy = pOrderBy;
|
||||
sSelect.pEList = pResultSet;
|
||||
sqlite3TreeViewSelect(0, &sSelect, 0);
|
||||
}
|
||||
}
|
||||
if( sqlite3WhereTrace & 0x100 ){ /* Display all terms of the WHERE clause */
|
||||
sqlite3WhereClausePrint(sWLB.pWC);
|
||||
|
||||
Reference in New Issue
Block a user