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