From 47aa03997b3717812e2dca904bfae94366610835 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Wed, 24 Sep 2025 08:26:34 -0400 Subject: [PATCH] fix pc issue in sequence test op --- core/vdbe/execute.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index f51186ea7..5068a819e 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -5390,9 +5390,11 @@ pub fn op_sequence_test( insn ); let cursor = state.get_cursor(*cursor_id).as_sorter_mut(); - if cursor.seq_beginning() { - state.pc = target_pc.as_offset_int(); - } + state.pc = if cursor.seq_beginning() { + target_pc.as_offset_int() + } else { + state.pc + 1 + }; Ok(InsnFunctionStepResult::Step) }