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