From e69c7c4d26731acd91cc683fbe118da1e423c460 Mon Sep 17 00:00:00 2001 From: Andy Xheli Date: Tue, 29 Nov 2022 11:24:56 -0600 Subject: [PATCH] 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 --- lib/private/Files/Cache/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5