forbid usage of IndexMethod in insert/delete loops

This commit is contained in:
Nikita Sivukhin
2025-10-27 18:19:14 +04:00
parent d65b7eddc0
commit d9ea3be4b8

View File

@@ -670,6 +670,9 @@ fn emit_delete_insns(
index: Some(index), ..
} => program.resolve_cursor_id(&CursorKey::index(internal_id, index.clone())),
},
Operation::IndexMethodQuery(_) => {
panic!("access through IndexMethod is not supported for delete statements")
}
};
let main_table_cursor_id = program.resolve_cursor_id(&CursorKey::table(internal_id));
@@ -1087,6 +1090,9 @@ fn emit_update_insns(
false,
),
},
Operation::IndexMethodQuery(_) => {
panic!("access through IndexMethod is not supported for update operations")
}
};
let beg = program.alloc_registers(