From 775c62860c0481d6bbc150c2d923cf85a6355bd1 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 fb9e5500658..d6ad14ac01e 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