From 83988a5906443164ba9b092664d893519b2b85e6 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 7 Aug 2013 21:01:31 +0200 Subject: [PATCH] Fix stupid bug --- lib/db/connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/connection.php b/lib/db/connection.php index 24466d7bddd..e8905d041f0 100644 --- a/lib/db/connection.php +++ b/lib/db/connection.php @@ -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; } -- 2.39.5