Class | ScopedSearch::QueryBuilder::Mysql2Adapter |
In: |
lib/scoped_search/query_builder.rb
|
Parent: | ScopedSearch::QueryBuilder |
Patches the default sql_operator method to add BINARY after the equals and not equals operator to force case-sensitive comparisons.
# File lib/scoped_search/query_builder.rb, line 438 438: def sql_operator(operator, field) 439: if [:ne, :eq].include?(operator) && field.textual? 440: "#{SQL_OPERATORS[operator]} BINARY" 441: else 442: super(operator, field) 443: end 444: end