Skip to content
Snippets Groups Projects
Commit 3e3d4607 authored by Robin Appelman's avatar Robin Appelman Committed by Thomas Müller
Browse files

use case insensitive LIKE when searching for files in mysql

parent c777910a
Branches
No related tags found
No related merge requests found
......@@ -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 ?';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment