From 6d9afca14f3b94d6c62307a2b248c7d9c56e9736 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 31 Oct 2019 11:23:35 +0100 Subject: [PATCH] Fix "Invalid parameter number: mixed named and positional parameters" Signed-off-by: Joas Schilling --- apps/files_sharing/lib/Migration/SetAcceptedStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Migration/SetAcceptedStatus.php b/apps/files_sharing/lib/Migration/SetAcceptedStatus.php index e8701488ef..935372ca3f 100644 --- a/apps/files_sharing/lib/Migration/SetAcceptedStatus.php +++ b/apps/files_sharing/lib/Migration/SetAcceptedStatus.php @@ -66,7 +66,7 @@ class SetAcceptedStatus implements IRepairStep { $query = $this->connection->getQueryBuilder(); $query ->update('share') - ->set('accepted', $query->createParameter(IShare::STATUS_ACCEPTED)) + ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED)) ->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY))); $query->execute(); }