aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-17 15:42:21 +0200
committerGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-17 20:30:47 +0200
commita1681b0756ef784ef7056a3aae3e569a6dcae00e (patch)
tree13ad313771c95cfba750ca3f21048341c0e75105 /core
parent40fd76f69e601ab5579e8ce9b81318d3924dd463 (diff)
downloadnextcloud-server-a1681b0756ef784ef7056a3aae3e569a6dcae00e.tar.gz
nextcloud-server-a1681b0756ef784ef7056a3aae3e569a6dcae00e.zip
chore(db): Apply query prepared statementsdbQueriesExecStmt2
Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/ConvertType.php4
-rw-r--r--core/Db/LoginFlowV2Mapper.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 43b2d62a900..b26494417ec 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -298,7 +298,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
$query->automaticTablePrefix(false);
$query->select($query->func()->count('*', 'num_entries'))
->from($table->getName());
- $result = $query->execute();
+ $result = $query->executeQuery();
$count = $result->fetchOne();
$result->closeCursor();
@@ -337,7 +337,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
for ($chunk = 0; $chunk < $numChunks; $chunk++) {
$query->setFirstResult($chunk * $chunkSize);
- $result = $query->execute();
+ $result = $query->executeQuery();
try {
$toDB->beginTransaction();
diff --git a/core/Db/LoginFlowV2Mapper.php b/core/Db/LoginFlowV2Mapper.php
index 8e95cfcb3bc..32664917cb5 100644
--- a/core/Db/LoginFlowV2Mapper.php
+++ b/core/Db/LoginFlowV2Mapper.php
@@ -71,7 +71,7 @@ class LoginFlowV2Mapper extends QBMapper {
$qb->expr()->lt('timestamp', $qb->createNamedParameter($this->timeFactory->getTime() - self::lifetime))
);
- $qb->execute();
+ $qb->executeStatement();
}
/**