diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-08 12:41:28 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-08 15:49:27 +0200 |
commit | 3e3d460729c515e5723587abc30b4d7955173d12 (patch) | |
tree | 44e220c22da4b326b4aa4c0563a4f492c34d1410 /lib | |
parent | c777910a8bedacf7c08bef27280061bae96db773 (diff) | |
download | nextcloud-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.php | 2 |
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 ?'; } |