/ Check-in [2e375eae]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enhanced debug output for OR-logic in the query loop optimizer.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2e375eae473e4a9f2e7870d59e22ba39051ecbce
User & Date: drh 2014-09-30 14:14:19
Context
2014-09-30
17:03
Further enhancements to the "wheretrace" debugging output. check-in: 670993eb user: drh tags: trunk
14:14
Enhanced debug output for OR-logic in the query loop optimizer. check-in: 2e375eae user: drh tags: trunk
13:46
Show tree diagrams of data structures in the debugging output when the 0x100 bit is set on sqlite3WhereTrace or sqlite3SelectTrace. check-in: 92e0b4bd user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/where.c.

  5033   5033             tempWC.nTerm = 1;
  5034   5034             tempWC.a = pOrTerm;
  5035   5035             sSubBuild.pWC = &tempWC;
  5036   5036           }else{
  5037   5037             continue;
  5038   5038           }
  5039   5039           sCur.n = 0;
         5040  +#ifdef WHERETRACE_ENABLED
         5041  +        if( sqlite3WhereTrace & 0x200 ){
         5042  +          sqlite3DebugPrintf("OR-term %d:\n",(int)(pOrTerm-pOrWC->a));
         5043  +          sqlite3TreeViewExpr(0, pOrTerm->pExpr, 0);
         5044  +        }
         5045  +#endif
  5040   5046   #ifndef SQLITE_OMIT_VIRTUALTABLE
  5041   5047           if( IsVirtual(pItem->pTab) ){
  5042   5048             rc = whereLoopAddVirtual(&sSubBuild, mExtra);
  5043   5049           }else
  5044   5050   #endif
  5045   5051           {
  5046   5052             rc = whereLoopAddBtree(&sSubBuild, mExtra);