/ Check-in [7fb16268]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix the header comment in sqlite3VdbeDeletePriorOpcode(). No changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7fb1626866c2f8dad84c7e6184824be3efd71ca2
User & Date: drh 2014-09-29 15:42:01
Context
2014-09-30
12:33
Remove the SQLITE_ENABLE_TREE_EXPLAIN compile-time option. Add alternative debugging display routines: sqlite3TreeViewExpr(), sqlite3TreeViewExprList(), and sqlite3TreeViewSelect(). check-in: 4ff51325 user: drh tags: trunk
2014-09-29
18:47
Add the OPFLAG_MULTICOLUMN flag to the OP_Column opcode. Rearrange OP_Column instructions to take advantage of the new flag for a small performance increase Leaf check-in: 5e5d6e86 user: drh tags: faster-OP_Column
15:42
Fix the header comment in sqlite3VdbeDeletePriorOpcode(). No changes to code. check-in: 7fb16268 user: drh tags: trunk
15:00
Ensure that the OP_Prev opcode verifies that content has not been deleted out from under the cursor. Fix for ticket [209d31e3161b9e9ff]. check-in: 414f0d6a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/vdbeaux.c.

   748    748       memset(pOp, 0, sizeof(pOp[0]));
   749    749       pOp->opcode = OP_Noop;
   750    750       if( addr==p->nOp-1 ) p->nOp--;
   751    751     }
   752    752   }
   753    753   
   754    754   /*
   755         -** Remove the last opcode inserted
          755  +** If the last opcode is "op" and it is not a jump destination,
          756  +** then remove it.  Return true if and only if an opcode was removed.
   756    757   */
   757    758   int sqlite3VdbeDeletePriorOpcode(Vdbe *p, u8 op){
   758    759     if( (p->nOp-1)>(p->pParse->iFixedOp) && p->aOp[p->nOp-1].opcode==op ){
   759    760       sqlite3VdbeChangeToNoop(p, p->nOp-1);
   760    761       return 1;
   761    762     }else{
   762    763       return 0;