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:
parent
ebc0c4b85b
commit
dea77b7610
1 changed files with 3 additions and 0 deletions
|
@ -440,6 +440,9 @@ class OC_DB {
|
||||||
$CONFIG_DBTABLEPREFIX = OC_Config::getValue( "dbtableprefix", "oc_" );
|
$CONFIG_DBTABLEPREFIX = OC_Config::getValue( "dbtableprefix", "oc_" );
|
||||||
$CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
|
$CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
|
||||||
|
|
||||||
|
// cleanup the cached queries
|
||||||
|
self::$preparedQueries = array();
|
||||||
|
|
||||||
self::connectScheme();
|
self::connectScheme();
|
||||||
|
|
||||||
// read file
|
// read file
|
||||||
|
|
Loading…
Reference in a new issue