Fix the spot that constant_mask was being set to 1

This commit is contained in:
rjhallsted
2024-09-10 14:08:15 -07:00
parent 6ac78dfb03
commit e1b134dd88

View File

@@ -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,