From: Thomas Mueller Date: Tue, 19 Mar 2013 18:17:40 +0000 (+0100) Subject: initial fix for MSSQL X-Git-Tag: v6.0.0alpha2~444^2~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28d2379c43b31ec362f1e0b4d09fed3ac9812cd2;p=nextcloud-server.git initial fix for MSSQL --- diff --git a/lib/db.php b/lib/db.php index 951c21f4146..3aff9cc68ae 100644 --- a/lib/db.php +++ b/lib/db.php @@ -703,11 +703,11 @@ class DoctrineStatementWrapper { } private function tryFixSubstringLastArgumentDataForMSSQL($input) { - $query = $this->statement->queryString; + $query = $this->statement->getWrappedStatement()->queryString; $pos = stripos ($query, 'SUBSTRING'); if ( $pos === false) { - return; + return $input; } try {