summaryrefslogtreecommitdiffstats
path: root/lib/private/db/adaptersqlsrv.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-16 15:44:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-16 15:44:21 +0200
commitca35d86c5a85485a418916ebf236b575d4401136 (patch)
treebfaa4dc524657cae5b3d5b1c8e27b3ac381ba7cd /lib/private/db/adaptersqlsrv.php
parent1771bfc2f2c790bc5d7a439095290cb4c97edf1a (diff)
downloadnextcloud-server-ca35d86c5a85485a418916ebf236b575d4401136.tar.gz
nextcloud-server-ca35d86c5a85485a418916ebf236b575d4401136.zip
adding ILIKE to AdapterSQLSrv
Diffstat (limited to 'lib/private/db/adaptersqlsrv.php')
-rw-r--r--lib/private/db/adaptersqlsrv.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/db/adaptersqlsrv.php b/lib/private/db/adaptersqlsrv.php
index a6bc0e21052..1ac9badab94 100644
--- a/lib/private/db/adaptersqlsrv.php
+++ b/lib/private/db/adaptersqlsrv.php
@@ -11,6 +11,7 @@ namespace OC\DB;
class AdapterSQLSrv extends Adapter {
public function fixupStatement($statement) {
+ $statement = str_replace(' ILIKE ', ' COLLATE Latin1_General_CI_AS LIKE ', $statement);
$statement = preg_replace( "/\`(.*?)`/", "[$1]", $statement );
$statement = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $statement );
$statement = str_replace( 'LENGTH(', 'LEN(', $statement );