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:
Pekka Enberg
2025-09-30 10:55:13 +03:00
parent 2b59863447
commit 9b83fe7abf

View File

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