mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 20:33:55 -04:00
Merge pull request #2722 from nextcloud/failed-to-create-share-fix
[downstream] commit transaction after select query
This commit is contained in:
commit
abf302bef8
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,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();
|
||||
|
|
@ -172,6 +171,7 @@ class DefaultShareProvider implements IShareProvider {
|
|||
|
||||
$cursor = $qb->execute();
|
||||
$data = $cursor->fetch();
|
||||
$this->dbConn->commit();
|
||||
$cursor->closeCursor();
|
||||
|
||||
if ($data === false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue