summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Db/QBMapper.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-05-05 14:19:02 +0200
committerGitHub <noreply@github.com>2021-05-05 14:19:02 +0200
commit1089ad5d9e74a0cfd3b48ed1514f23be40fe6d45 (patch)
tree4be569379ff25316320da81671650895e5ca1a60 /lib/public/AppFramework/Db/QBMapper.php
parent4d82a9446d5de3935577aa4ec437d4087392df72 (diff)
parent99f2fa73d1c386a6aa9c5464c576ac4a9d086ea4 (diff)
downloadnextcloud-server-1089ad5d9e74a0cfd3b48ed1514f23be40fe6d45.tar.gz
nextcloud-server-1089ad5d9e74a0cfd3b48ed1514f23be40fe6d45.zip
Merge pull request #26877 from nextcloud/chore/query-builder-execute-statement
Rename IQueryBuilder::executeUpdate to IQueryBuilder::executeStatement
Diffstat (limited to 'lib/public/AppFramework/Db/QBMapper.php')
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index ac6520a9d03..f1450b5dd4c 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -101,7 +101,7 @@ abstract class QBMapper {
->where(
$qb->expr()->eq('id', $qb->createNamedParameter($entity->getId(), $idType))
);
- $qb->executeUpdate();
+ $qb->executeStatement();
return $entity;
}
@@ -132,7 +132,7 @@ abstract class QBMapper {
$qb->setValue($column, $qb->createNamedParameter($value, $type));
}
- $qb->executeUpdate();
+ $qb->executeStatement();
if ($entity->id === null) {
// When autoincrement is used id is always an int
@@ -211,7 +211,7 @@ abstract class QBMapper {
$qb->where(
$qb->expr()->eq('id', $qb->createNamedParameter($id, $idType))
);
- $qb->executeUpdate();
+ $qb->executeStatement();
return $entity;
}