From 086ba8c9460d8839d4dcdcaa96e9e184d779d092 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Tue, 21 Oct 2025 12:13:06 +0300 Subject: [PATCH] VDBE: begin statement subtransaction in op_transaction --- core/vdbe/execute.rs | 3 +++ 1 file changed, 3 insertions(+) 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);