Skip to content

Commit

Permalink
Fix Executing a query: SQLSTATE[42000]
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Xheli <[email protected]>

Fix #32007 (comment)

Signed-off-by: Andy Xheli <[email protected]>
  • Loading branch information
Andy Xheli authored Nov 29, 2022
1 parent f0a1e1c commit e69c7c4
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 e69c7c4

Please sign in to comment.