mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 18:24:20 +01:00
forbid usage of IndexMethod in insert/delete loops
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user