summaryrefslogtreecommitdiffstats
path: root/lib/private/db/mdb2schemamanager.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-11-24 23:13:23 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-26 22:39:01 +0100
commit4fbc2774ef4c1c8962ad9129e522e13a19938120 (patch)
treebde9e85d7875bd741407327e1ac31ca99ed1486b /lib/private/db/mdb2schemamanager.php
parent4f15282bc998bb68896b5df67f4f749dd435897d (diff)
downloadnextcloud-server-4fbc2774ef4c1c8962ad9129e522e13a19938120.tar.gz
nextcloud-server-4fbc2774ef4c1c8962ad9129e522e13a19938120.zip
on mssql the schema migration sometimes fails due to an already existing transaction - error: 'New transaction is not allowed because there are other threads running in the session.'
The solution is to simple reconnect to the database to start with a fresh connection
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r--lib/private/db/mdb2schemamanager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 416e2f55426..6378c769055 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -19,6 +19,8 @@ class MDB2SchemaManager {
*/
public function __construct($conn) {
$this->conn = $conn;
+ $this->conn->close();
+ $this->conn->connect();
}
/**