mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 06:24:56 +01:00
Allow char function to have empty args
This commit is contained in:
@@ -165,14 +165,7 @@ pub fn translate_expr(
|
||||
Some(Func::Scalar(srf)) => {
|
||||
match srf {
|
||||
ScalarFunc::Char => {
|
||||
let args = if let Some(args) = args {
|
||||
args
|
||||
} else {
|
||||
crate::bail_parse_error!(
|
||||
"{} function with no arguments",
|
||||
srf.to_string()
|
||||
);
|
||||
};
|
||||
let args = args.clone().unwrap_or_else(Vec::new);
|
||||
|
||||
for arg in args.iter() {
|
||||
let reg = program.alloc_register();
|
||||
|
||||
Reference in New Issue
Block a user