summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-16 01:11:19 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-16 01:12:13 +0100
commitf18fc1c5101da7f46f5361c979194ee38acf3478 (patch)
treed9237bddb95c55ebe57afa22ede9cc4510857cac /lib
parenta08490364d081ff5030ab45d612235cb0ed6299c (diff)
downloadnextcloud-server-f18fc1c5101da7f46f5361c979194ee38acf3478.tar.gz
nextcloud-server-f18fc1c5101da7f46f5361c979194ee38acf3478.zip
Clear cached prepared statements when switching between mdb2 and pdo
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php
index c5908afe69b..5224d5ee7da 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -123,6 +123,7 @@ class OC_DB {
return true;
}
}
+ self::$preparedQueries = array();
// The global data we need
$name = OC_Config::getValue( "dbname", "owncloud" );
$host = OC_Config::getValue( "dbhost", "" );
@@ -203,6 +204,7 @@ class OC_DB {
return true;
}
}
+ self::$preparedQueries = array();
// The global data we need
$name = OC_Config::getValue( "dbname", "owncloud" );
$host = OC_Config::getValue( "dbhost", "" );
@@ -598,7 +600,7 @@ class OC_DB {
error_log('DB error: '.$entry);
OC_Template::printErrorPage( $entry );
}
-
+
if($result->numRows() == 0) {
$query = 'INSERT INTO "' . $table . '" ("'
. implode('","', array_keys($input)) . '") VALUES("'
@@ -633,7 +635,7 @@ class OC_DB {
return $result->execute();
}
-
+
/**
* @brief does minor changes to query
* @param string $query Query string