equal
deleted
inserted
replaced
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, *pIn2, *pIn3; /* Input operands */ |
546 Mem *pIn1 = 0; /* Input operands */ |
547 Mem *pOut; /* Output operand */ |
547 Mem *pIn2 = 0; /* Input operands */ |
|
548 Mem *pIn3 = 0; /* Input operands */ |
|
549 Mem *pOut = 0; /* Output operand */ |
548 u8 opProperty; |
550 u8 opProperty; |
549 int iCompare = 0; /* Result of last OP_Compare operation */ |
551 int iCompare = 0; /* Result of last OP_Compare operation */ |
550 int *aPermute = 0; /* Permuation of columns for OP_Compare */ |
552 int *aPermute = 0; /* Permuation of columns for OP_Compare */ |
551 #ifdef VDBE_PROFILE |
553 #ifdef VDBE_PROFILE |
552 u64 start; /* CPU clock count at start of opcode */ |
554 u64 start; /* CPU clock count at start of opcode */ |
3530 ** If P4 is not NULL then the P1 cursor must have been positioned |
3532 ** If P4 is not NULL then the P1 cursor must have been positioned |
3531 ** using OP_NotFound prior to invoking this opcode. |
3533 ** using OP_NotFound prior to invoking this opcode. |
3532 */ |
3534 */ |
3533 case OP_Delete: { |
3535 case OP_Delete: { |
3534 int i = pOp->p1; |
3536 int i = pOp->p1; |
3535 i64 iKey; |
3537 i64 iKey = 0; |
3536 Cursor *pC; |
3538 Cursor *pC; |
3537 |
3539 |
3538 assert( i>=0 && i<p->nCursor ); |
3540 assert( i>=0 && i<p->nCursor ); |
3539 pC = p->apCsr[i]; |
3541 pC = p->apCsr[i]; |
3540 assert( pC!=0 ); |
3542 assert( pC!=0 ); |