mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 01:24: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 {
|
} else {
|
||||||
let is_begin = !*auto_commit && !*rollback;
|
let is_begin = !*auto_commit && !*rollback;
|
||||||
return Err(LimboError::TxError(
|
if is_begin {
|
||||||
"cannot use BEGIN after BEGIN CONCURRENT".to_string(),
|
return Err(LimboError::TxError(
|
||||||
));
|
"cannot use BEGIN after BEGIN CONCURRENT".to_string(),
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user