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

fixes: https://github.com/owncloud/apps/issues/468
remotes/origin/stable5
Thomas Mueller 12 years ago
parent ebc0c4b85b
commit dea77b7610
  1. 3
      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

Loading…
Cancel
Save