Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Executing a query: SQLSTATE[42000]
Signed-off-by: Andy Xheli <[email protected]>

Fix #32007 (comment)

Signed-off-by: Andy Xheli <[email protected]>
  • Loading branch information
Andy Xheli authored and backportbot-nextcloud[bot] committed Nov 30, 2022
commit 775c62860c0481d6bbc150c2d923cf85a6355bd1
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