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 449 449: def sql_operator(operator, field) 450: if [:ne, :eq].include?(operator) && field.textual? 451: "#{SQL_OPERATORS[operator]} BINARY" 452: else 453: super(operator, field) 454: end 455: end