From c69f503eacf9e54239a5db85719888b4aaefd1e2 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Sun, 4 May 2025 14:52:02 -0300 Subject: [PATCH] rebase adjustments --- core/translate/emitter.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/translate/emitter.rs b/core/translate/emitter.rs index 81a07e92e..ec6eb1c7f 100644 --- a/core/translate/emitter.rs +++ b/core/translate/emitter.rs @@ -601,6 +601,7 @@ fn emit_program_for_update( program.emit_insn(Insn::OpenWrite { cursor_id: index_cursor, root_page: RegisterOrLiteral::Literal(index.root_page), + name: index.name.clone(), }); index_cursors.push(index_cursor); } @@ -926,6 +927,7 @@ fn emit_update_insns( start_reg: index_record_reg_start, count: index_record_reg_count, dest_reg: index_record_reg, + index_name: Some(index.name.clone()), }); program.emit_insn(Insn::IdxInsert { cursor_id: index_cursor, @@ -1004,7 +1006,7 @@ fn emit_update_insns( } } - for (pos, index) in plan.indexes.iter().enumerate() { + for (pos, index) in plan.indexes_to_update.iter().enumerate() { if index.unique { let (_, _, idx_cursor_id, record_reg) = idx_cursors.get(pos).expect("index cursor should exist");