summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-01-20 14:00:15 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-01-20 14:00:15 -0800
commitb0716ba0e082c090f34265ba52df8028f7aa7daf (patch)
tree6f498508b42dee6ab13731be27f1d3571c131f8a
parentebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff)
parentdea77b76104cb6581b30b4eac29176afd0e76316 (diff)
downloadnextcloud-server-b0716ba0e082c090f34265ba52df8028f7aa7daf.tar.gz
nextcloud-server-b0716ba0e082c090f34265ba52df8028f7aa7daf.zip
Merge pull request #1247 from owncloud/clear-queries-cache-on-schema-change-master
cached queries need to be reset on schema change because they become inv...
-rw-r--r--lib/db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php
index 5224d5ee7da..7cc65673d10 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -440,6 +440,9 @@ class OC_DB {
$CONFIG_DBTABLEPREFIX = OC_Config::getValue( "dbtableprefix", "oc_" );
$CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
+ // cleanup the cached queries
+ self::$preparedQueries = array();
+
self::connectScheme();
// read file