Merge 'Small VDBE insn tweaks' from Jussi Saurio

1. allow calling op_null with Insn::BeginSubrtn
    - BeginSubrtn is identical to Null, but named differently so that
its use in context is clearer
2. Insn::Return: add possibility to fallthrough on non-integer values as
per sqlite spec

Closes #1588
This commit is contained in:
Jussi Saurio 2025-05-27 20:19:31 +03:00
commit ad0f2bb399
4 changed files with 33 additions and 14 deletions

View file

@ -625,11 +625,14 @@ pub fn insn_to_str(
0,
"".to_string(),
),
Insn::Return { return_reg } => (
Insn::Return {
return_reg,
can_fallthrough,
} => (
"Return",
*return_reg as i32,
0,
0,
*can_fallthrough as i32,
Value::build_text(""),
0,
"".to_string(),