use case insensitive LIKE when searching for files in mysql

This commit is contained in:
Robin Appelman 2014-07-08 12:41:28 +02:00 committed by Thomas Müller
parent c777910a8b
commit 3e3d460729
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ class Cache {
$sql .= 'REGEXP_LIKE(`name`, ?, \'i\')';
} else if($dbtype === 'pgsql') {
$sql .= '`name` ILIKE ?';
} else if ($dbtype === 'mysql') {
$sql .= '`name` COLLATE utf8_general_ci LIKE ?';
} else {
$sql .= '`name` LIKE ?';
}