diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-20 22:46:26 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-20 22:46:26 +0100 |
commit | dea77b76104cb6581b30b4eac29176afd0e76316 (patch) | |
tree | 6f498508b42dee6ab13731be27f1d3571c131f8a /lib/db.php | |
parent | ebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff) | |
download | nextcloud-server-dea77b76104cb6581b30b4eac29176afd0e76316.tar.gz nextcloud-server-dea77b76104cb6581b30b4eac29176afd0e76316.zip |
cached queries need to be reset on schema change because they become invalid
fixes: https://github.com/owncloud/apps/issues/468
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index 5224d5ee7da..7cc65673d10 100644 --- a/lib/db.php +++ b/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 |