diff --git a/core/translate/emitter.rs b/core/translate/emitter.rs index db84007f0..3c95f028a 100644 --- a/core/translate/emitter.rs +++ b/core/translate/emitter.rs @@ -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(