/ Check-in [3686ed74]
Login

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

Overview
Comment:Limit the number of digits shown in the "prereq" mask for ".wheretrace" debugging output.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3686ed7413ae6cdbc8020c0023205e0455e87467
User & Date: drh 2016-04-09 14:36:07
Context
2016-04-09
17:04
Fix the sqlite3BtreeDelete() routine so that it preserves the correct key even when the row being deleted is not on a leaf page. Fix for ticket [a306e56ff68b8fa56] check-in: ca2ef8a8 user: drh tags: trunk
14:36
Limit the number of digits shown in the "prereq" mask for ".wheretrace" debugging output. check-in: 3686ed74 user: drh tags: trunk
2016-04-08
19:44
Update documentation for sqlite3_snapshot_open(). No code changes. check-in: 1dfa5234 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/where.c.

  1647   1647   
  1648   1648   #ifdef WHERETRACE_ENABLED
  1649   1649   /*
  1650   1650   ** Print a WhereLoop object for debugging purposes
  1651   1651   */
  1652   1652   static void whereLoopPrint(WhereLoop *p, WhereClause *pWC){
  1653   1653     WhereInfo *pWInfo = pWC->pWInfo;
  1654         -  int nb = 1+(pWInfo->pTabList->nSrc+7)/8;
         1654  +  int nb = 1+(pWInfo->pTabList->nSrc+3)/4;
  1655   1655     struct SrcList_item *pItem = pWInfo->pTabList->a + p->iTab;
  1656   1656     Table *pTab = pItem->pTab;
         1657  +  Bitmask mAll = (((Bitmask)1)<<(nb*4)) - 1;
  1657   1658     sqlite3DebugPrintf("%c%2d.%0*llx.%0*llx", p->cId,
  1658         -                     p->iTab, nb, p->maskSelf, nb, p->prereq);
         1659  +                     p->iTab, nb, p->maskSelf, nb, p->prereq & mAll);
  1659   1660     sqlite3DebugPrintf(" %12s",
  1660   1661                        pItem->zAlias ? pItem->zAlias : pTab->zName);
  1661   1662     if( (p->wsFlags & WHERE_VIRTUALTABLE)==0 ){
  1662   1663       const char *zName;
  1663   1664       if( p->u.btree.pIndex && (zName = p->u.btree.pIndex->zName)!=0 ){
  1664   1665         if( strncmp(zName, "sqlite_autoindex_", 17)==0 ){
  1665   1666           int i = sqlite3Strlen30(zName) - 1;