1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

In selecttrace mode 0x100, show a complete parse-tree both before and after

query flattening.  This is a change to debugging code only.

FossilOrigin-Name: b3c6b8a3c1075d2a87cef68f061d6a0098e6d8d0
This commit is contained in:
drh
2015-02-09 11:54:41 +00:00
parent 31e7147dfa
commit 0e86a1ac08
3 changed files with 14 additions and 7 deletions

View File

@@ -3444,6 +3444,13 @@ static int flattenSubquery(
/***** If we reach this point, flattening is permitted. *****/
SELECTTRACE(1,pParse,p,("flatten %s.%p from term %d\n",
pSub->zSelName, pSub, iFrom));
#if SELECTTRACE_ENABLED
if( sqlite3SelectTrace & 0x100 ){
sqlite3DebugPrintf("Befor flattening:\n");
sqlite3TreeViewSelect(0, p, 0);
}
#endif
/* Authorize the subquery */
pParse->zAuthContext = pSubitem->zName;