From dea77b76104cb6581b30b4eac29176afd0e76316 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Sun, 20 Jan 2013 22:46:26 +0100 Subject: [PATCH] cached queries need to be reset on schema change because they become invalid fixes: https://github.com/owncloud/apps/issues/468 --- lib/db.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db.php b/lib/db.php index 5224d5ee7d..7cc65673d1 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