mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Document the use of OPFLAG_ISNOOP as the P2 argument on OP_Delete. No
functional code changes. FossilOrigin-Name: d88f41b2cf2b721170d2428a50b717976091389d9a07d0ffa15c3323b0eaad37
This commit is contained in:
@@ -5775,8 +5775,13 @@ case OP_RowCell: {
|
||||
** the "primary" delete. The others are all on OPFLAG_FORDELETE
|
||||
** cursors or else are marked with the AUXDELETE flag.
|
||||
**
|
||||
** If the OPFLAG_NCHANGE flag of P2 (NB: P2 not P5) is set, then the row
|
||||
** change count is incremented (otherwise not).
|
||||
** If the OPFLAG_NCHANGE (0x01) flag of P2 (NB: P2 not P5) is set, then
|
||||
** the row change count is incremented (otherwise not).
|
||||
**
|
||||
** If the OPFLAG_ISNOOP (0x40) flag of P2 (not P5!) is set, then the
|
||||
** pre-update-hook for deletes is run, but the btree is otherwise unchanged.
|
||||
** This happens when the OP_Delete is to be shortly followed by an OP_Insert
|
||||
** with the same key, causing the btree entry to be overwritten.
|
||||
**
|
||||
** P1 must not be pseudo-table. It has to be a real table with
|
||||
** multiple rows.
|
||||
|
Reference in New Issue
Block a user