Skip to content

Commit aa8dc13

Browse files
authored
Merge pull request #42153 from nextcloud/backport/42144/stable27
[stable27] fix(caldav): don't reuse query builder objects
2 parents c3293f0 + 90cb0bc commit aa8dc13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3085,11 +3085,13 @@ public function purgeAllCachedEventsForSubscription($subscriptionId) {
30853085
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
30863086
->executeStatement();
30873087

3088+
$query = $this->db->getQueryBuilder();
30883089
$query->delete('calendarchanges')
30893090
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
30903091
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
30913092
->executeStatement();
30923093

3094+
$query = $this->db->getQueryBuilder();
30933095
$query->delete($this->dbObjectPropertiesTable)
30943096
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
30953097
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))

0 commit comments

Comments
 (0)