mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-09 11:14:20 +01:00
rebase adjustments
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user