From 7376475cb3751696faa26df29f4bdd84b01bb608 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Tue, 21 Oct 2025 14:08:30 +0300 Subject: [PATCH] Do not start statement subtransactions when MVCC is enabled MVCC does not support statement-level rollback. --- core/vdbe/execute.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 3a56f30bc..a4c3fb37a 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -2471,8 +2471,10 @@ pub fn op_transaction_inner( } } - let write = matches!(tx_mode, TransactionMode::Write); - state.begin_statement(&program.connection, &pager, write)?; + if mv_store.is_none() { + let write = matches!(tx_mode, TransactionMode::Write); + state.begin_statement(&program.connection, &pager, write)?; + } state.pc += 1; state.op_transaction_state = OpTransactionState::Start;