From 99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 5 May 2021 10:35:25 +0200 Subject: Fix usage of rename executeUpdate Signed-off-by: Christoph Wurst --- apps/sharebymail/lib/ShareByMailProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/sharebymail/lib') diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 12c1be50272..89eac5a7b8c 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -696,7 +696,7 @@ class ShareByMailProvider implements IShareProvider { */ $qb->setValue('file_target', $qb->createNamedParameter('')); - $qb->executeUpdate(); + $qb->executeStatement(); return $qb->getLastInsertId(); } @@ -732,7 +732,7 @@ class ShareByMailProvider implements IShareProvider { ->set('expiration', $qb->createNamedParameter($share->getExpirationDate(), IQueryBuilder::PARAM_DATE)) ->set('note', $qb->createNamedParameter($share->getNote())) ->set('hide_download', $qb->createNamedParameter((int)$share->getHideDownload(), IQueryBuilder::PARAM_INT)) - ->executeUpdate(); + ->executeStatement(); if ($originalShare->getNote() !== $share->getNote() && $share->getNote() !== '') { $this->sendNote($share); @@ -964,7 +964,7 @@ class ShareByMailProvider implements IShareProvider { $qb = $this->dbConnection->getQueryBuilder(); $qb->delete('share') ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId))); - $qb->executeUpdate(); + $qb->executeStatement(); } /** @@ -1058,7 +1058,7 @@ class ShareByMailProvider implements IShareProvider { $qb->delete('share') ->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_EMAIL))) ->andWhere($qb->expr()->eq('uid_owner', $qb->createNamedParameter($uid))) - ->executeUpdate(); + ->executeStatement(); } /** -- cgit v1.2.3