persistentstorage/sql/SQLite/vdbe.c
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
   541   int pc;                    /* The program counter */
   541   int pc;                    /* The program counter */
   542   Op *pOp;                   /* Current operation */
   542   Op *pOp;                   /* Current operation */
   543   int rc = SQLITE_OK;        /* Value to return */
   543   int rc = SQLITE_OK;        /* Value to return */
   544   sqlite3 *db = p->db;       /* The database */
   544   sqlite3 *db = p->db;       /* The database */
   545   u8 encoding = ENC(db);     /* The database encoding */
   545   u8 encoding = ENC(db);     /* The database encoding */
   546   Mem *pIn1 = 0;             /* Input operands */
   546   Mem *pIn1, *pIn2, *pIn3;   /* Input operands */
   547   Mem *pIn2 = 0;             /* Input operands */
   547   Mem *pOut;                 /* Output operand */
   548   Mem *pIn3 = 0;             /* Input operands */
       
   549   Mem *pOut = 0;             /* Output operand */
       
   550   u8 opProperty;
   548   u8 opProperty;
   551   int iCompare = 0;          /* Result of last OP_Compare operation */
   549   int iCompare = 0;          /* Result of last OP_Compare operation */
   552   int *aPermute = 0;         /* Permuation of columns for OP_Compare */
   550   int *aPermute = 0;         /* Permuation of columns for OP_Compare */
   553 #ifdef VDBE_PROFILE
   551 #ifdef VDBE_PROFILE
   554   u64 start;                 /* CPU clock count at start of opcode */
   552   u64 start;                 /* CPU clock count at start of opcode */
  3532 ** If P4 is not NULL then the P1 cursor must have been positioned
  3530 ** If P4 is not NULL then the P1 cursor must have been positioned
  3533 ** using OP_NotFound prior to invoking this opcode.
  3531 ** using OP_NotFound prior to invoking this opcode.
  3534 */
  3532 */
  3535 case OP_Delete: {
  3533 case OP_Delete: {
  3536   int i = pOp->p1;
  3534   int i = pOp->p1;
  3537   i64 iKey = 0;
  3535   i64 iKey;
  3538   Cursor *pC;
  3536   Cursor *pC;
  3539 
  3537 
  3540   assert( i>=0 && i<p->nCursor );
  3538   assert( i>=0 && i<p->nCursor );
  3541   pC = p->apCsr[i];
  3539   pC = p->apCsr[i];
  3542   assert( pC!=0 );
  3540   assert( pC!=0 );