diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 11:35:25 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 11:35:25 +0300 |
commit | 99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4 (patch) | |
tree | 599c0fc8c90251104092a365d0d461b0c0e06a07 /apps/sharebymail/lib | |
parent | 865661ed75a542245abcc6639adee769a13267d0 (diff) |
Fix usage of rename executeUpdate
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } /** |