From 28d2379c43b31ec362f1e0b4d09fed3ac9812cd2 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 19 Mar 2013 19:17:40 +0100 Subject: [PATCH] initial fix for MSSQL --- lib/db.php | 4 ++-- 1 file 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 { -- 2.39.5