Skip to content

Commit

Permalink
use like (vs ilike) for service query
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Mar 13, 2019
1 parent c323d0e commit 26616f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service/aggregation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def aggregate_hardware_arel(virtual_column_name, aggregation_sql, options = {})
def aggregation_where_clause(arel, subtree_services)
arel.grouping(
subtree_services[:id].eq(arel[:id])
.or(subtree_services[:ancestry].matches(ancestry_ilike))
.or(subtree_services[:ancestry].matches(ancestry_ilike, nil, true))
).or(subtree_services[:ancestry].eq(service_id_cast))
end

Expand Down

0 comments on commit 26616f8

Please sign in to comment.