diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-08-07 21:01:31 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-08-07 21:01:31 +0200 |
commit | 83988a5906443164ba9b092664d893519b2b85e6 (patch) | |
tree | f9135d7a3d823580842dd4d7b60e7e82aa5ef271 | |
parent | 0783267e2ccca0ab3e8dc8143308bd379320ef1e (diff) | |
download | nextcloud-server-83988a5906443164ba9b092664d893519b2b85e6.tar.gz nextcloud-server-83988a5906443164ba9b092664d893519b2b85e6.zip |
Fix stupid bug
-rw-r--r-- | lib/db/connection.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |