aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-19 13:16:43 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-19 13:16:43 +0100
commitc20c836a466afcbb7bf35d235f9a24e42142348b (patch)
treea8e55e16df0f7ce0e52cb399284a9623d99de013
parent1106c354acd8ebc23b1a19662232d8f6235bc96d (diff)
downloadnextcloud-server-c20c836a466afcbb7bf35d235f9a24e42142348b.tar.gz
nextcloud-server-c20c836a466afcbb7bf35d235f9a24e42142348b.zip
Remove old adapter - mssql is not supported
-rw-r--r--lib/private/db/adaptersqlsrv.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/private/db/adaptersqlsrv.php b/lib/private/db/adaptersqlsrv.php
deleted file mode 100644
index f208b2ba787..00000000000
--- a/lib/private/db/adaptersqlsrv.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
- * @author Bart Visscher <bartv@thisnet.nl>
- * @author Morris Jobke <hey@morrisjobke.de>
- * @author Thomas Müller <thomas.mueller@tmit.eu>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-
-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 );
- $statement = str_replace( 'SUBSTR(', 'SUBSTRING(', $statement );
- $statement = str_ireplace( 'UNIX_TIMESTAMP()', 'DATEDIFF(second,{d \'1970-01-01\'},GETDATE())', $statement );
- return $statement;
- }
-}