Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti@veritasgenetics.com>
cond_out = []
- if attrs_in == 'any' && operator.casecmp('ilike') && (operand.is_a? String) && operand.match('^[%].*[%]$')
+ if attrs_in == 'any' && (operator.casecmp('ilike').zero? || operator.casecmp('like').zero?) && (operand.is_a? String) && operand.match('^[%].*[%]$')
# Trigram index search
- cond_out << model_class.full_text_trgm + " ilike ?"
+ cond_out << model_class.full_text_trgm + " #{operator} ?"
param_out << operand
# Skip the generic per-column operator loop below
attrs = []