From d4bcf2c15a13da1dcbf7d8c0cf08aa2f33f8e4a7 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Thu, 25 Sep 2025 09:21:35 +0300 Subject: [PATCH] mvcc: disallow BEGIN after BEGIN CONCURRENT --- core/vdbe/execute.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 5d0351d59..a947d1aa5 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -2451,6 +2451,11 @@ pub fn op_auto_commit( "cannot commit - no transaction is active".to_string(), )); } + } else { + let is_begin = !*auto_commit && !*rollback; + return Err(LimboError::TxError( + "cannot use BEGIN after BEGIN CONCURRENT".to_string(), + )); } }