]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix stupid bug
authorBart Visscher <bartv@thisnet.nl>
Wed, 7 Aug 2013 19:01:31 +0000 (21:01 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 7 Aug 2013 19:01:31 +0000 (21:01 +0200)
lib/db/connection.php

index 24466d7bddd422f5f161566d1f23452e05fce2b1..e8905d041f0858e8d4dbed44b6323dcc42e5400e 100644 (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;
        }