cached queries need to be reset on schema change because they become invalid

fixes: https://github.com/owncloud/apps/issues/468
This commit is contained in:
Thomas Mueller 2013-01-20 22:46:26 +01:00
parent ebc0c4b85b
commit dea77b7610
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