EXPLAIN should show a comment for the Insert opcode

This commit is contained in:
Anton Harniakou 2025-05-05 10:54:59 +03:00
parent 46c915b13c
commit d74df2473e
6 changed files with 8 additions and 2 deletions

View file

@ -1014,14 +1014,15 @@ pub fn insn_to_str(
key_reg,
record_reg,
flag,
table_name,
} => (
"Insert",
*cursor as i32,
*record_reg as i32,
*key_reg as i32,
OwnedValue::build_text(""),
OwnedValue::build_text(&table_name),
*flag as u16,
"".to_string(),
format!("intkey=r[{}] data=r[{}]", key_reg, record_reg),
),
Insn::Delete { cursor_id } => (
"Delete",