]> source.dussan.org Git - nextcloud-server.git/commitdiff
cached queries need to be reset on schema change because they become invalid
authorThomas Mueller <thomas.mueller@tmit.eu>
Sun, 20 Jan 2013 21:46:26 +0000 (22:46 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sun, 20 Jan 2013 21:46:26 +0000 (22:46 +0100)
fixes: https://github.com/owncloud/apps/issues/468

lib/db.php

index 5224d5ee7da46ebfc4d34cc55690cbb7b9a222ff..7cc65673d101097cc7900c301e1bbccbf2eaa331 100644 (file)
@@ -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