Restore accent insensitive search with mysql (#18537).

git-svn-id: http://svn.redmine.org/redmine/trunk@13767 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-15 19:22:13 +00:00
parent 15bb695bbb
commit 30175bf85e
3 changed files with 23 additions and 12 deletions

View File

@@ -121,8 +121,6 @@ module Redmine
case connection.adapter_name
when /postgresql/i
"#{column} ILIKE #{value}"
when /mysql/i
"LOWER(#{column}) COLLATE utf8_bin LIKE LOWER(#{value})"
else
"#{column} LIKE #{value}"
end