Skip to content
Snippets Groups Projects
Commit 83988a59 authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix stupid bug

parent 0783267e
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment