diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 442e6857d..85eb03ef3 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -2471,6 +2471,9 @@ pub fn op_transaction_inner( } } + let write = matches!(tx_mode, TransactionMode::Write); + state.begin_statement(&program.connection, &pager, write)?; + state.pc += 1; state.op_transaction_state = OpTransactionState::Start; return Ok(InsnFunctionStepResult::Step);