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) }