diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-10-17 15:42:21 +0200 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-10-17 20:30:47 +0200 |
commit | a1681b0756ef784ef7056a3aae3e569a6dcae00e (patch) | |
tree | 13ad313771c95cfba750ca3f21048341c0e75105 /apps/dav/lib/Command | |
parent | 40fd76f69e601ab5579e8ce9b81318d3924dd463 (diff) | |
download | nextcloud-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 'apps/dav/lib/Command')
-rw-r--r-- | apps/dav/lib/Command/RemoveInvalidShares.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Command/RemoveInvalidShares.php b/apps/dav/lib/Command/RemoveInvalidShares.php index 18f8de5b4e2..340e878a912 100644 --- a/apps/dav/lib/Command/RemoveInvalidShares.php +++ b/apps/dav/lib/Command/RemoveInvalidShares.php @@ -38,7 +38,7 @@ class RemoveInvalidShares extends Command { $query = $this->connection->getQueryBuilder(); $result = $query->selectDistinct('principaluri') ->from('dav_shares') - ->execute(); + ->executeQuery(); while ($row = $result->fetch()) { $principaluri = $row['principaluri']; @@ -59,6 +59,6 @@ class RemoveInvalidShares extends Command { $delete = $this->connection->getQueryBuilder(); $delete->delete('dav_shares') ->where($delete->expr()->eq('principaluri', $delete->createNamedParameter($principaluri))); - $delete->execute(); + $delete->executeStatement(); } } |