rebase adjustments

This commit is contained in:
pedrocarlo
2025-05-04 14:52:02 -03:00
parent 05f4ca28cc
commit c69f503eac

View File

@@ -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");