Skip to content

Commit

Permalink
Filter comparison handle upcase and downcase
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-chaitanya-45 committed Aug 2, 2024
1 parent 360f1f1 commit d9f1475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query_helper/sql_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def create_filters

@filter_values.each do |comparate_alias, criteria|
# Find the sql mapping if it exists
map = @column_maps.find { |m| m.alias_name == comparate_alias }
map = @column_maps.find { |m| m.alias_name.downcase == comparate_alias.downcase }
raise InvalidQueryError.new("cannot filter by #{comparate_alias}") unless map

# create the filter
Expand Down

0 comments on commit d9f1475

Please sign in to comment.