refactor+fix: precompute default values from schema

This commit is contained in:
Levy A. 2025-05-23 20:10:01 -03:00
parent 7638b0dab7
commit 15e0cab8d8
13 changed files with 123 additions and 172 deletions

View file

@ -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[{}]={}.{}",