mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
use vec for cursors, not map
This commit is contained in:
parent
cdafc9033e
commit
faa6d0c69d
2 changed files with 53 additions and 23 deletions
|
@ -372,7 +372,8 @@ impl Connection {
|
|||
syms,
|
||||
)?;
|
||||
|
||||
let mut state = vdbe::ProgramState::new(program.max_registers);
|
||||
let mut state =
|
||||
vdbe::ProgramState::new(program.max_registers, program.cursor_ref.len());
|
||||
program.step(&mut state, self.pager.clone())?;
|
||||
}
|
||||
}
|
||||
|
@ -441,7 +442,7 @@ pub struct Statement {
|
|||
|
||||
impl Statement {
|
||||
pub fn new(program: Rc<vdbe::Program>, pager: Rc<Pager>) -> Self {
|
||||
let state = vdbe::ProgramState::new(program.max_registers);
|
||||
let state = vdbe::ProgramState::new(program.max_registers, program.cursor_ref.len());
|
||||
Self {
|
||||
program,
|
||||
state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue