core/vdbe: Change is_btree to is_table in OpenEphemeral

This commit is contained in:
Diego Reis
2025-04-13 11:15:01 -03:00
parent 4c315e1bb6
commit fd79ad2644
3 changed files with 7 additions and 7 deletions

View File

@@ -4520,7 +4520,7 @@ pub fn op_open_ephemeral(
) -> Result<InsnFunctionStepResult> {
let Insn::OpenEphemeral {
cursor_id,
is_btree,
is_table,
} = insn
else {
unreachable!("unexpected Insn {:?}", insn)
@@ -4546,7 +4546,7 @@ pub fn op_open_ephemeral(
buffer_pool,
)?);
let flag = if *is_btree {
let flag = if *is_table {
&CreateBTreeFlags::new_table()
} else {
&CreateBTreeFlags::new_index()

View File

@@ -1391,18 +1391,18 @@ pub fn insn_to_str(
),
Insn::OpenEphemeral {
cursor_id,
is_btree,
is_table,
} => (
"OpenEphemeral",
*cursor_id as i32,
*is_btree as i32,
*is_table as i32,
0,
OwnedValue::build_text(""),
0,
format!(
"cursor={} is_btree={}",
"cursor={} is_table={}",
cursor_id,
if *is_btree { "true" } else { "false" }
if *is_table { "true" } else { "false" }
),
),
};

View File

@@ -815,7 +815,7 @@ pub enum Insn {
/// Open a new cursor P1 to a transient table.
OpenEphemeral {
cursor_id: usize,
is_btree: bool,
is_table: bool,
},
}