Actions
Defect #8822
closedUser search is case sensitive
Defect #8822:
User search is case sensitive
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Search engine
Target version:
-
Resolution:
Fixed
Affected version:
Description
Filter in create user page (/users) generate SQL like:
SELECT * FROM "users" WHERE (1=1 AND (status = 1) AND (LOWER(login) LIKE '%Виктор%' OR LOWER(firstname) LIKE '%Виктор%' OR LOWER(lastname) LIKE '%Виктор%' OR LOWER(mail) LIKE '%Виктор%')) AND ( ("users"."type" = 'User' OR "users"."type" = 'AnonymousUser' ) ) ORDER BY login LIMIT 25 OFFSET 0
Аs result i got nothing, because
does't return anything.Imho it must used Ilike or what sense in lower()? Or add comment to search field.
Updated by Etienne Massip over 15 years ago
Must be a Ruby 1.8 unicode issue.
Updated by Daniel Felix almost 14 years ago
Any news on this issue?
Updated by Jean-Philippe Lang almost 14 years ago
- Status changed from New to Closed
- Resolution set to Fixed
This was fixed some time ago. User.like scope would now use LOWER(firstname) LIKE LOWER('%Виктор%')
Actions