From: Andy Xheli Date: Tue, 29 Nov 2022 17:24:56 +0000 (-0600) Subject: Fix Executing a query: SQLSTATE[42000] X-Git-Tag: v26.0.0beta1~315^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F35502%2Fhead;p=nextcloud-server.git Fix Executing a query: SQLSTATE[42000] Signed-off-by: Andy Xheli Fix https://github.com/nextcloud/server/issues/32007#issuecomment-1329405245 Signed-off-by: Andy Xheli --- diff --git a/lib/private/Files/Cache/Storage.php b/lib/private/Files/Cache/Storage.php index f77c9b71dd7..01fc638cef8 100644 --- a/lib/private/Files/Cache/Storage.php +++ b/lib/private/Files/Cache/Storage.php @@ -239,7 +239,7 @@ class Storage { $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();