summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-08 12:41:28 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-08 15:49:27 +0200
commit3e3d460729c515e5723587abc30b4d7955173d12 (patch)
tree44e220c22da4b326b4aa4c0563a4f492c34d1410 /lib
parentc777910a8bedacf7c08bef27280061bae96db773 (diff)
downloadnextcloud-server-3e3d460729c515e5723587abc30b4d7955173d12.tar.gz
nextcloud-server-3e3d460729c515e5723587abc30b4d7955173d12.zip
use case insensitive LIKE when searching for files in mysql
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/cache.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 72af474adf8..cfa3e916185 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -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 ?';
}