diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-12-02 14:21:38 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-12-03 02:03:37 +0000 |
commit | 645bea5a043eb8b6feef92da7e1fba28ea43a9b4 (patch) | |
tree | e3dcf59e034371b4a271656c1c2284e256fd616f /apps/dav | |
parent | c8c198715ec22a957b6f59b30cea9d1c426f6b07 (diff) | |
download | nextcloud-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.php | 3 |
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']); } |