From 9af811233bc389020e104a0af85fbaa65689c6a0 Mon Sep 17 00:00:00 2001 From: sonhmai <14060682+sonhmai@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:14:28 +0700 Subject: [PATCH] core: fix concat function wrong start_register --- core/translate/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/translate/expr.rs b/core/translate/expr.rs index 1ab35e6ce..5fc6dfab4 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -734,7 +734,7 @@ pub fn translate_expr( translate_expr(program, referenced_tables, arg, reg, cursor_hint)?; } program.emit_insn(Insn::Function { - start_reg: target_register, + start_reg: target_register + 1, dest: target_register, func: crate::vdbe::Func::Scalar(srf), });