core/vdbe: Fix logic error during btree creation

I do thing we should change this 1,2 flag to 0,1 or just an enum, to be more rustacean. The current state can be very misleading
This commit is contained in:
Diego Reis
2025-04-11 07:32:31 -03:00
parent 61c324cca5
commit 035e6dcef4

View File

@@ -4545,7 +4545,8 @@ pub fn op_open_ephemeral(
buffer_pool,
)?);
let root_page = pager.btree_create(*is_btree as usize);
let flag = if *is_btree { 1 } else { 0 };
let root_page = pager.btree_create(flag);
let (_, cursor_type) = program.cursor_ref.get(*cursor_id).unwrap();
let mv_cursor = match state.mv_tx_id {