summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-02 14:21:38 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-12-03 02:03:37 +0000
commit645bea5a043eb8b6feef92da7e1fba28ea43a9b4 (patch)
treee3dcf59e034371b4a271656c1c2284e256fd616f /apps/dav
parentc8c198715ec22a957b6f59b30cea9d1c426f6b07 (diff)
downloadnextcloud-server-645bea5a043eb8b6feef92da7e1fba28ea43a9b4.tar.gz
nextcloud-server-645bea5a043eb8b6feef92da7e1fba28ea43a9b4.zip
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav')
-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 ea1a30c629e..db5bc22a2f4 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -1656,6 +1656,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$result = $outerQuery->execute();
$calendarObjects = $result->fetchAll();
+ $result->closeCursor();
return array_map(function ($o) {
$calendarData = Reader::read($o['calendardata']);
@@ -2315,6 +2316,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'size' => (int)$row['size'],
];
}
+ $stmt->closeCursor();
return $result;
}
@@ -2695,6 +2697,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
->execute();
$ids = $result->fetchAll();
+ $result->closeCursor();
foreach ($ids as $id) {
$this->deleteCalendar($id['id']);
}