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
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-02 16:21:38 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-02 16:23:59 +0300
commit98d4aefe43086076e21adf56c1789e49df624be9 (patch)
tree3145360d1f31f6b3258e80ae6ee638550de8fee5 /apps/dav/lib/CalDAV/CalDavBackend.php
parent3ce6a73b5425b81d9ab254d3028c6088b04cbb63 (diff)
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalDavBackend.php')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 5aa499be159..1c26ee2eb8a 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -1916,6 +1916,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$result = $outerQuery->executeQuery();
$calendarObjects = $result->fetchAll();
+ $result->closeCursor();
return array_map(function ($o) {
$calendarData = Reader::read($o['calendardata']);
@@ -2630,6 +2631,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'size' => (int)$row['size'],
];
}
+ $stmt->closeCursor();
return $result;
}
@@ -3009,6 +3011,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
->executeQuery();
$ids = $result->fetchAll();
+ $result->closeCursor();
foreach ($ids as $id) {
$this->deleteCalendar(
$id['id'],