projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15531: Test federation migrate script WIP
[arvados.git]
/
services
/
api
/
lib
/
record_filters.rb
diff --git
a/services/api/lib/record_filters.rb
b/services/api/lib/record_filters.rb
index 7b0d48b0518cc7365426915072fc7101a961bd03..c8f024291c2c677c086445b294658a3c221211c0 100644
(file)
--- a/
services/api/lib/record_filters.rb
+++ b/
services/api/lib/record_filters.rb
@@
-44,9
+44,9
@@
module RecordFilters
cond_out = []
cond_out = []
- if attrs_in == 'any' &&
operator.casecmp('ilike'
) && operand.match('^[%].*[%]$')
+ if attrs_in == 'any' &&
(operator.casecmp('ilike').zero? || operator.casecmp('like').zero?) && (operand.is_a? String
) && operand.match('^[%].*[%]$')
# Trigram index search
# 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 = []
param_out << operand
# Skip the generic per-column operator loop below
attrs = []