summaryrefslogtreecommitdiffstats
path: root/lib/private/db/adaptermysql.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-09 13:57:02 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-16 15:32:34 +0200
commit1771bfc2f2c790bc5d7a439095290cb4c97edf1a (patch)
tree85d26a01433af40d1aa7b3a39c22b51053a91f1e /lib/private/db/adaptermysql.php
parent1978d3d6a279a4c60371b2cf809bd57e70f4ed35 (diff)
downloadnextcloud-server-1771bfc2f2c790bc5d7a439095290cb4c97edf1a.tar.gz
nextcloud-server-1771bfc2f2c790bc5d7a439095290cb4c97edf1a.zip
Introduce cross-db ILIKE
Diffstat (limited to 'lib/private/db/adaptermysql.php')
-rw-r--r--lib/private/db/adaptermysql.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/db/adaptermysql.php b/lib/private/db/adaptermysql.php
new file mode 100644
index 00000000000..0b6e6a5e969
--- /dev/null
+++ b/lib/private/db/adaptermysql.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+
+namespace OC\DB;
+
+class AdapterMySQL extends Adapter {
+ public function fixupStatement($statement) {
+ $statement = str_replace(' ILIKE ', ' COLLATE utf8_general_ci LIKE ', $statement);
+ return $statement;
+ }
+}