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
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-12-02 18:34:20 +0300
commit2de727390564fb21d58c1029e3781a1c2472fecc (patch)
treeecf805b76801489b969c02d0c6b4092ee0d5342e /apps/dav/lib
parente3ee81de050a65b1d97cb521f77ef11f00164399 (diff)
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib')
-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 7094358a2c6..67d36e351a8 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -1901,6 +1901,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']);
@@ -2615,6 +2616,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'size' => (int)$row['size'],
];
}
+ $stmt->closeCursor();
return $result;
}
@@ -2994,6 +2996,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
->executeQuery();
$ids = $result->fetchAll();
+ $result->closeCursor();
foreach ($ids as $id) {
$this->deleteCalendar(
$id['id'],