From ae3c6b7ec5fd23e70543c7f9de240ea3397e5c28 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Fri, 14 Feb 2025 11:43:16 +0200 Subject: [PATCH] core/vdbe: Fix AutoCommit instruction to halt the VM Pointed out by Jussi --- core/vdbe/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index d1c85ca45..1083cbcdf 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -1190,7 +1190,7 @@ impl Program { )); } } - state.pc += 1; + return self.halt(pager); } Insn::Goto { target_pc } => { assert!(target_pc.is_offset());