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:03:15 +0000
commit11f444e34f6da1de156782f50bcd9fa1f8a1962b (patch)
tree7109051e047565d3b9887ab7af770c4e39910509 /apps
parent87fd9434ee95e7b9618e2e0b8779c8b7caf6bcf5 (diff)
downloadnextcloud-server-11f444e34f6da1de156782f50bcd9fa1f8a1962b.tar.gz
nextcloud-server-11f444e34f6da1de156782f50bcd9fa1f8a1962b.zip
fix: improve oci compatibility when purging calendar invitationsbackport/49454/stable30
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 01ea38ae474..2342d1e9431 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -3571,7 +3571,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();
}
}
@@ -3588,7 +3588,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();
}
}