aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-11-23 16:52:46 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-11-25 17:00:14 +0000
commit2a1177a2756b5338bd51bedc086ddb1b6fc1de9d (patch)
tree75cef603fe66529a75ab91c4d6eb9156f3145d71 /apps
parent9a94b6a39bb5e868039c66b7339c2c8072ad3c20 (diff)
downloadnextcloud-server-2a1177a2756b5338bd51bedc086ddb1b6fc1de9d.tar.gz
nextcloud-server-2a1177a2756b5338bd51bedc086ddb1b6fc1de9d.zip
fix: improve oci compatibility when purging calendar invitationsbackport/49454/stable28
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 5f7c4d6fc07..6268693649c 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3531,7 +3531,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$cmd->delete($this->dbObjectInvitationsTable)
->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
foreach (array_chunk($allIds, 1000) as $chunkIds) {
- $cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_INT_ARRAY);
+ $cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_STR_ARRAY);
$cmd->executeStatement();
}
}
@@ -3548,7 +3548,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
protected function purgeObjectInvitations(string $eventId): void {
$cmd = $this->db->getQueryBuilder();
$cmd->delete($this->dbObjectInvitationsTable)
- ->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId)));
+ ->where($cmd->expr()->eq('uid', $cmd->createNamedParameter($eventId, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
$cmd->executeStatement();
}
}