summaryrefslogtreecommitdiffstats
path: root/lib/private/Share
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-24 18:05:08 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-02 09:48:16 +0200
commit2f8756754ff62a199cd6cc2a530a14fe5bd77c17 (patch)
tree6e134239c51276b9f4c0f763a1345f0a4a535504 /lib/private/Share
parent293dea0625ba76969c05fda47b2f5400bbaf523e (diff)
downloadnextcloud-server-2f8756754ff62a199cd6cc2a530a14fe5bd77c17.tar.gz
nextcloud-server-2f8756754ff62a199cd6cc2a530a14fe5bd77c17.zip
Fix last failures with oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share')
-rw-r--r--lib/private/Share/Share.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php
index 8938c6f3066..93117bf3c7e 100644
--- a/lib/private/Share/Share.php
+++ b/lib/private/Share/Share.php
@@ -338,6 +338,7 @@ class Share extends Constants {
}
}
}
+ $result->closeCursor();
}
}
@@ -1460,8 +1461,9 @@ class Share extends Constants {
->from('share')
->where($qb->expr()->eq('id', $qb->createParameter('shareId')))
->setParameter(':shareId', $shareId);
- $result = $qb->execute();
- $result = $result->fetch();
+ $dbResult = $qb->execute();
+ $result = $dbResult->fetch();
+ $dbResult->closeCursor();
if (empty($result)) {
throw new \Exception('Share not found');