aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-10-17 11:29:46 +0200
committerGitHub <noreply@github.com>2024-10-17 11:29:46 +0200
commit40fd76f69e601ab5579e8ce9b81318d3924dd463 (patch)
tree0209b59a3dff7bd3a50629dfb6c8376e02dc43af /core/Command
parent4100f583f03464978e622f5765bbef33e363c97f (diff)
parentc254855222ca2776ccaa9c362b84295391cdd208 (diff)
downloadnextcloud-server-40fd76f69e601ab5579e8ce9b81318d3924dd463.tar.gz
nextcloud-server-40fd76f69e601ab5579e8ce9b81318d3924dd463.zip
Merge pull request #48724 from nextcloud/dbQueriesExecStmt
chore(db): Apply query prepared statements
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Preview/ResetRenderedTexts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Preview/ResetRenderedTexts.php b/core/Command/Preview/ResetRenderedTexts.php
index 12f7d237d8f..4cae315e48b 100644
--- a/core/Command/Preview/ResetRenderedTexts.php
+++ b/core/Command/Preview/ResetRenderedTexts.php
@@ -120,7 +120,7 @@ class ResetRenderedTexts extends Command {
$qb->select('path', 'mimetype')
->from('filecache')
->where($qb->expr()->eq('fileid', $qb->createNamedParameter($this->previewFolder->getId())));
- $cursor = $qb->execute();
+ $cursor = $qb->executeQuery();
$data = $cursor->fetch();
$cursor->closeCursor();
@@ -153,7 +153,7 @@ class ResetRenderedTexts extends Command {
)
);
- $cursor = $qb->execute();
+ $cursor = $qb->executeQuery();
while ($row = $cursor->fetch()) {
yield $row;