Fix Executing a query: SQLSTATE[42000]

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>
This commit is contained in:
Andy Xheli 2022-11-29 11:24:56 -06:00 committed by backportbot-nextcloud[bot]
parent 5936991827
commit 5200b0e5f2

View 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();