From 90cb0bcb8ea80ffeb7c8abdf27e8da3d1bb483d6 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Mon, 11 Dec 2023 11:32:32 +0100 Subject: [PATCH] fix(caldav): don't reuse query builder objects Signed-off-by: Anna Larch --- apps/dav/lib/CalDAV/CalDavBackend.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index a580e62016633..81d51a044d4fd 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -3085,11 +3085,13 @@ public function purgeAllCachedEventsForSubscription($subscriptionId) { ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) ->executeStatement(); + $query = $this->db->getQueryBuilder(); $query->delete('calendarchanges') ->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId))) ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) ->executeStatement(); + $query = $this->db->getQueryBuilder(); $query->delete($this->dbObjectPropertiesTable) ->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId))) ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))