]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Executing a query: SQLSTATE[42000] 35502/head
authorAndy Xheli <axheli@axtsolutions.com>
Tue, 29 Nov 2022 17:24:56 +0000 (11:24 -0600)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 17:24:56 +0000 (11:24 -0600)
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
Fix https://github.com/nextcloud/server/issues/32007#issuecomment-1329405245

Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
lib/private/Files/Cache/Storage.php

index f77c9b71dd7a4514b86941e71d5b7da3e427eb97..01fc638cef85e9d72a5a035317827ff643d0250d 100644 (file)
@@ -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();