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...
This commit is contained in:
Thomas Müller 2013-01-20 14:00:15 -08:00
commit b0716ba0e0
1 changed files with 3 additions and 0 deletions

View 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