Skip to content

Commit

Permalink
Merge pull request #35502 from andyxheli/patch-1
Browse files Browse the repository at this point in the history
Fix SQL comparison with int array during external storage deletion
  • Loading branch information
CarlSchwan authored Nov 30, 2022
2 parents f4adfd1 + e69c7c4 commit 2b73c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public static function cleanByMountId(int $mountId) {

$query = $db->getQueryBuilder();
$query->delete('storages')
->where($query->expr()->eq('numeric_id', $query->createNamedParameter($storageIds, IQueryBuilder::PARAM_INT_ARRAY)));
->where($query->expr()->in('numeric_id', $query->createNamedParameter($storageIds, IQueryBuilder::PARAM_INT_ARRAY)));
$query->executeStatement();

$query = $db->getQueryBuilder();
Expand Down

0 comments on commit 2b73c04

Please sign in to comment.