summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 19:17:40 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-19 19:17:40 +0100
commit28d2379c43b31ec362f1e0b4d09fed3ac9812cd2 (patch)
tree93ba6760febf262eada1fec49f117dc370571767 /lib
parent6f13a35513b212de937c44522df17501360dd870 (diff)
downloadnextcloud-server-28d2379c43b31ec362f1e0b4d09fed3ac9812cd2.tar.gz
nextcloud-server-28d2379c43b31ec362f1e0b4d09fed3ac9812cd2.zip
initial fix for MSSQL
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php4
1 files changed, 2 insertions, 2 deletions
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 {