initial fix for MSSQL

This commit is contained in:
Thomas Mueller 2013-03-19 19:17:40 +01:00
parent 6f13a35513
commit 28d2379c43
1 changed files with 2 additions and 2 deletions

View File

@ -703,11 +703,11 @@ class DoctrineStatementWrapper {
} }
private function tryFixSubstringLastArgumentDataForMSSQL($input) { private function tryFixSubstringLastArgumentDataForMSSQL($input) {
$query = $this->statement->queryString; $query = $this->statement->getWrappedStatement()->queryString;
$pos = stripos ($query, 'SUBSTRING'); $pos = stripos ($query, 'SUBSTRING');
if ( $pos === false) { if ( $pos === false) {
return; return $input;
} }
try { try {