mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-09 10:14:21 +01:00
core/vdbe: Change is_btree to is_table in OpenEphemeral
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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" }
|
||||
),
|
||||
),
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user