mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-09 10:14:21 +01:00
mvcc: disallow BEGIN after BEGIN CONCURRENT
This commit is contained in:
@@ -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(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user