/ Check-in [421714da]
Login

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

Overview
Comment:Remove an unnecessary initialization of Vdbe.aOnceFlag.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | uninit-vdbe-mem
Files: files | file ages | folders
SHA1: 421714dad32f3460fa40a7f65e9fa276f5e37f58
User & Date: drh 2011-12-09 17:38:23
Context
2011-12-09
17:51
Remove an unnecessary condition. Closed-Leaf check-in: d9ba023c user: drh tags: uninit-vdbe-mem
17:38
Remove an unnecessary initialization of Vdbe.aOnceFlag. check-in: 421714da user: drh tags: uninit-vdbe-mem
17:27
Take out the OP_JumpOnce opcode. Revert compound SELECT to use OP_IfNot, which is the correct behavior. Mark trigger registers as initially invalid. check-in: 6a9fb47d user: drh tags: uninit-vdbe-mem
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  1559   1559       p->aMem--;                      /* aMem[] goes from 1..nMem */
  1560   1560       p->nMem = nMem;                 /*       not from 0..nMem-1 */
  1561   1561       for(n=1; n<=nMem; n++){
  1562   1562         p->aMem[n].flags = MEM_Invalid;
  1563   1563         p->aMem[n].db = db;
  1564   1564       }
  1565   1565     }
  1566         -  if( p->aOnceFlag ) memset(p->aOnceFlag, 0, p->nOnceFlag);
  1567   1566     p->explain = pParse->explain;
  1568   1567     sqlite3VdbeRewind(p);
  1569   1568   }
  1570   1569   
  1571   1570   /*
  1572   1571   ** Close a VDBE cursor and release all the resources that cursor 
  1573   1572   ** happens to hold.