Fix stupid bug

This commit is contained in:
Bart Visscher 2013-08-07 21:01:31 +02:00
parent 0783267e2c
commit 83988a5906
1 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ class Connection extends \Doctrine\DBAL\Connection {
if (isset($this->preparedQueries[$statement]) && $this->cachingQueryStatementEnabled) {
return $this->preparedQueries[$statement];
}
$origStatement = $statement;
}
$statement = $this->replaceTablePrefix($statement);
$statement = $this->adapter->fixupStatement($statement);
@ -81,7 +82,7 @@ class Connection extends \Doctrine\DBAL\Connection {
}
$result = parent::prepare($statement);
if (is_null($limit) && $this->cachingQueryStatementEnabled) {
$this->preparedQueries[$statement] = $result;
$this->preparedQueries[$origStatement] = $result;
}
return $result;
}