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(), + )); } }