Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorphisch <git@philippschaffrath.de>2016-11-24 15:02:17 +0300
committerVincent Petry <pvince81@owncloud.com>2016-11-24 20:40:37 +0300
commit63666b72aaad8b7c516f2c50a334974d8282f808 (patch)
treea03557fbdcde096ea8b35198fc050dc755477a4a /lib
parent34bf7255dee30f5e796af97f2f7dd444c87fae36 (diff)
commit transaction after select query
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/defaultshareprovider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share20/defaultshareprovider.php b/lib/private/share20/defaultshareprovider.php
index 43dc6090a35..c53c6177558 100644
--- a/lib/private/share20/defaultshareprovider.php
+++ b/lib/private/share20/defaultshareprovider.php
@@ -158,7 +158,6 @@ class DefaultShareProvider implements IShareProvider {
$this->dbConn->beginTransaction();
$qb->execute();
$id = $this->dbConn->lastInsertId('*PREFIX*share');
- $this->dbConn->commit();
// Now fetch the inserted share and create a complete share object
$qb = $this->dbConn->getQueryBuilder();
@@ -168,6 +167,7 @@ class DefaultShareProvider implements IShareProvider {
$cursor = $qb->execute();
$data = $cursor->fetch();
+ $this->dbConn->commit();
$cursor->closeCursor();
if ($data === false) {