]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Executing a query: SQLSTATE[42000] 35524/head
authorAndy Xheli <axheli@axtsolutions.com>
Tue, 29 Nov 2022 17:24:56 +0000 (11:24 -0600)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 30 Nov 2022 15:04:47 +0000 (15:04 +0000)
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 fb9e550065850f49a21f12a73ae3e509739908bc..d6ad14ac01e5a3a57bba991b77f0d7783213e01b 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();