diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2024-11-23 16:52:46 +0100 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2024-11-23 16:55:11 +0100 |
commit | 739ab5cd82117ca64b13503a3b7864be3187c130 (patch) | |
tree | c57046444c200f1725b915024b904318f02b1d54 /apps/dav/lib | |
parent | 23802949c2c8e8cbc7f3731390f3b830731b8af6 (diff) | |
download | nextcloud-server-739ab5cd82117ca64b13503a3b7864be3187c130.tar.gz nextcloud-server-739ab5cd82117ca64b13503a3b7864be3187c130.zip |
fix: improve oci compatibility when purging calendar invitationsfix/invitations-named-parameter
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index cdcdd53701d..0c8b52a7491 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(); } } |