/ Check-in [9f8297f8]
Login

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

Overview
Comment:Suppress the display of the P4 operand in EXPLAIN output when an opcode has been converted into a No-op.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9f8297f862a110ded686d091854fae20c6bc393c
User & Date: drh 2016-01-20 02:36:12
Context
2016-01-20
03:36
Performance improvement in sqlite3DbMallocRaw(). check-in: ff8eadbe user: drh tags: trunk
02:36
Suppress the display of the P4 operand in EXPLAIN output when an opcode has been converted into a No-op. check-in: 9f8297f8 user: drh tags: trunk
02:21
Remove an unnecessary memset() from the symbol name resolver. check-in: da527dda user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

   846    846   int sqlite3VdbeChangeToNoop(Vdbe *p, int addr){
   847    847     VdbeOp *pOp;
   848    848     if( p->db->mallocFailed ) return 0;
   849    849     assert( addr>=0 && addr<p->nOp );
   850    850     pOp = &p->aOp[addr];
   851    851     freeP4(p->db, pOp->p4type, pOp->p4.p);
   852    852     pOp->p4type = P4_NOTUSED;
          853  +  pOp->p4.z = 0;
   853    854     pOp->opcode = OP_Noop;
   854    855     return 1;
   855    856   }
   856    857   
   857    858   /*
   858    859   ** If the last opcode is "op" and it is not a jump destination,
   859    860   ** then remove it.  Return true if and only if an opcode was removed.