/ Check-in [064c283e]
Login

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

Overview
Comment:Fix the trace output of the OP_Function opcode to show the correct register numbers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: 064c283eee82c5053e84058a0e1908e468da6ce3
User & Date: drh 2010-04-07 14:32:11
Context
2010-04-07
14:33
Enhance comments on the SrcList object definition to better explain the operation of the SrcList.a[].colUsed field. No changes to code. check-in: c0f67ea1 user: drh tags: experimental
14:32
Fix the trace output of the OP_Function opcode to show the correct register numbers. check-in: 064c283e user: drh tags: experimental
2010-04-06
22:33
Veryquick.test is now working. The SQLITE_STMTSTATUS_AUTOINDEX counter added. check-in: abbf16e5 user: drh tags: experimental
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  1379   1379   
  1380   1380     assert( n==0 || (pOp->p2>0 && pOp->p2+n<=p->nMem+1) );
  1381   1381     assert( pOp->p3<pOp->p2 || pOp->p3>=pOp->p2+n );
  1382   1382     pArg = &aMem[pOp->p2];
  1383   1383     for(i=0; i<n; i++, pArg++){
  1384   1384       apVal[i] = pArg;
  1385   1385       sqlite3VdbeMemStoreType(pArg);
  1386         -    REGISTER_TRACE(pOp->p2, pArg);
         1386  +    REGISTER_TRACE(pOp->p2+i, pArg);
  1387   1387     }
  1388   1388   
  1389   1389     assert( pOp->p4type==P4_FUNCDEF || pOp->p4type==P4_VDBEFUNC );
  1390   1390     if( pOp->p4type==P4_FUNCDEF ){
  1391   1391       ctx.pFunc = pOp->p4.pFunc;
  1392   1392       ctx.pVdbeFunc = 0;
  1393   1393     }else{