From e1b134dd887a9c8e87f783da3465b8041c6ef916 Mon Sep 17 00:00:00 2001 From: rjhallsted Date: Tue, 10 Sep 2024 14:08:15 -0700 Subject: [PATCH] Fix the spot that constant_mask was being set to 1 --- core/translate/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/translate/expr.rs b/core/translate/expr.rs index a44f74d46..7211e70ce 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -454,7 +454,8 @@ pub fn translate_condition_expr( cursor_hint, )?; program.emit_insn(Insn::Function { - constant_mask: 0, + // Currently only constant values for the first arg are supported + constant_mask: 1, func: crate::vdbe::Func::Scalar(ScalarFunc::Like), start_reg: pattern_reg, dest: cur_reg, @@ -815,7 +816,6 @@ pub fn translate_expr( } } program.emit_insn(Insn::Function { - // Currently only constant values for the first arg are supported constant_mask: 1, start_reg: target_register + 1, dest: target_register,