Skip to content

Commit ef7800a

Browse files
Merge pull request #30052 from nextcloud/backport/30046/stable22
[stable22] Close open cursor in the caldav back-end
2 parents 93794bf + 88f3c5d commit ef7800a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,7 @@ public function search(array $calendarInfo, $pattern, array $searchProperties,
18991899

19001900
$result = $outerQuery->executeQuery();
19011901
$calendarObjects = $result->fetchAll();
1902+
$result->closeCursor();
19021903

19031904
return array_map(function ($o) {
19041905
$calendarData = Reader::read($o['calendardata']);
@@ -2613,6 +2614,7 @@ public function getSchedulingObjects($principalUri) {
26132614
'size' => (int)$row['size'],
26142615
];
26152616
}
2617+
$stmt->closeCursor();
26162618

26172619
return $result;
26182620
}
@@ -2992,6 +2994,7 @@ public function deleteAllBirthdayCalendars() {
29922994
->executeQuery();
29932995

29942996
$ids = $result->fetchAll();
2997+
$result->closeCursor();
29952998
foreach ($ids as $id) {
29962999
$this->deleteCalendar(
29973000
$id['id'],

0 commit comments

Comments
 (0)