aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/DeleteOrphanedFiles.php
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-16 10:41:21 +0200
committerGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-10-16 18:30:53 +0200
commit70db9dc5369142526f74a4aa39e2a9ba92af9d8e (patch)
treeef58139898ff8f1c421fbfb8674877a8f2f59bcc /apps/files/lib/Command/DeleteOrphanedFiles.php
parent94e1241c589e13464a958b29052739a354aadddd (diff)
downloadnextcloud-server-dbQueriesExecStmt.tar.gz
nextcloud-server-dbQueriesExecStmt.zip
chore(db): Correctly apply query typesdbQueriesExecStmt
fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
Diffstat (limited to 'apps/files/lib/Command/DeleteOrphanedFiles.php')
-rw-r--r--apps/files/lib/Command/DeleteOrphanedFiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/DeleteOrphanedFiles.php b/apps/files/lib/Command/DeleteOrphanedFiles.php
index 4bbee0b45f4..966351e4da0 100644
--- a/apps/files/lib/Command/DeleteOrphanedFiles.php
+++ b/apps/files/lib/Command/DeleteOrphanedFiles.php
@@ -147,11 +147,11 @@ class DeleteOrphanedFiles extends Command {
$deletedInLastChunk = self::CHUNK_SIZE;
while ($deletedInLastChunk === self::CHUNK_SIZE) {
$deletedInLastChunk = 0;
- $result = $query->execute();
+ $result = $query->executeQuery();
while ($row = $result->fetch()) {
$deletedInLastChunk++;
$deletedEntries += $deleteQuery->setParameter('storageid', (int)$row['storage_id'])
- ->execute();
+ ->executeStatement();
}
$result->closeCursor();
}