summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-20 22:46:26 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-20 22:46:26 +0100
commitdea77b76104cb6581b30b4eac29176afd0e76316 (patch)
tree6f498508b42dee6ab13731be27f1d3571c131f8a /lib/db.php
parentebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff)
downloadnextcloud-server-dea77b76104cb6581b30b4eac29176afd0e76316.tar.gz
nextcloud-server-dea77b76104cb6581b30b4eac29176afd0e76316.zip
cached queries need to be reset on schema change because they become invalid
fixes: https://github.com/owncloud/apps/issues/468
Diffstat (limited to 'lib/db.php')
-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