Searchs aren't case sensitive enough. Default categories in native language (even if switching language at runtime)

This commit is contained in:
2011-02-15 19:17:18 +01:00
parent bf417a503d
commit 92252f33c3
9 changed files with 148 additions and 132 deletions

View File

@@ -1331,7 +1331,7 @@ std::vector<Operation>* Database::Search(User* user, wxString* description, wxDa
ESCAPE_CHARS(desc);
if (wildcards)
req += wxT("description LIKE '%") + desc + wxT("%'");
req += wxT("UPPER(description) LIKE UPPER('%") + desc + wxT("%')");
else
req += wxT("description=\"") + desc + wxT("\"");
firstCond = true;