[Pkg-owncloud-commits] [owncloud] 49/70: use case insensitive LIKE when searching for files in mysql
David Prévot
taffit at moszumanska.debian.org
Mon Jul 14 17:38:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 1ce9ba1ebcb5beeb35dbad757fd6408bad069ee4
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Jul 8 12:41:28 2014 +0200
use case insensitive LIKE when searching for files in mysql
---
lib/private/files/cache/cache.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 72af474..cfa3e91 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 ?';
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list