mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
core/vdbe: Fix BEGIN after BEGIN CONCURRENT check
We're supposed to error out only when "is_begin" is true.
This commit is contained in:
@@ -2474,9 +2474,11 @@ pub fn op_auto_commit(
|
||||
}
|
||||
} else {
|
||||
let is_begin = !*auto_commit && !*rollback;
|
||||
return Err(LimboError::TxError(
|
||||
"cannot use BEGIN after BEGIN CONCURRENT".to_string(),
|
||||
));
|
||||
if is_begin {
|
||||
return Err(LimboError::TxError(
|
||||
"cannot use BEGIN after BEGIN CONCURRENT".to_string(),
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user