mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #30046 from nextcloud/fix/dav-back-end-missing-close-cursor
Close open cursor in the caldav back-end
This commit is contained in:
commit
9cb90b3d1d
1 changed files with 3 additions and 0 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue