mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
refactor+fix: precompute default values from schema
This commit is contained in:
parent
7638b0dab7
commit
15e0cab8d8
13 changed files with 123 additions and 172 deletions
|
@ -527,6 +527,7 @@ pub fn insn_to_str(
|
|||
cursor_id,
|
||||
column,
|
||||
dest,
|
||||
default,
|
||||
} => {
|
||||
let cursor_type = &program.cursor_ref[*cursor_id].1;
|
||||
let column_name: Option<&String> = match cursor_type {
|
||||
|
@ -550,7 +551,7 @@ pub fn insn_to_str(
|
|||
*cursor_id as i32,
|
||||
*column as i32,
|
||||
*dest as i32,
|
||||
Value::build_text(""),
|
||||
default.clone().unwrap_or_else(|| Value::build_text("")),
|
||||
0,
|
||||
format!(
|
||||
"r[{}]={}.{}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue