Skip to content

Commit fc0f41d

Browse files
committed
fix(preview): Close cursor
1 parent a4c7f93 commit fc0f41d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/private/Preview/PreviewMigrationService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ public function migrateFileId(int $fileId, bool $flatPath, ?array $entries = nul
9494
->where($qb->expr()->eq('fileid', $qb->createNamedParameter($fileId)))
9595
->setMaxResults(1);
9696

97-
$result = $qb->executeQuery();
98-
$result = $result->fetchAssociative();
97+
$cursor = $qb->executeQuery();
98+
$result = $cursor->fetchAssociative();
99+
$cursor->closeCursor();
99100

100101
if ($result !== false) {
101102
$oldFileIdsToDelete = [];

0 commit comments

Comments
 (0)