mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
68b16b75fa
commit
88f3c5d743
1 changed files with 3 additions and 0 deletions
|
|
@ -1899,6 +1899,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']);
|
||||
|
|
@ -2613,6 +2614,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
'size' => (int)$row['size'],
|
||||
];
|
||||
}
|
||||
$stmt->closeCursor();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
@ -2992,6 +2994,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