diff options
author | phisch <git@philippschaffrath.de> | 2016-11-24 15:02:17 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-11-24 20:40:37 +0300 |
commit | 63666b72aaad8b7c516f2c50a334974d8282f808 (patch) | |
tree | a03557fbdcde096ea8b35198fc050dc755477a4a /lib | |
parent | 34bf7255dee30f5e796af97f2f7dd444c87fae36 (diff) |
commit transaction after select query
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share20/defaultshareprovider.php | 2 |
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) { |