From 7e6a9393a0b71d01055366c775449d60cf2cec86 Mon Sep 17 00:00:00 2001 From: Christian Schiffler Date: Fri, 17 Mar 2017 11:08:22 +0100 Subject: [PATCH] Fix #1097 correct parameter index in query --- src/MetaModels/DataAccess/ItemPersister.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MetaModels/DataAccess/ItemPersister.php b/src/MetaModels/DataAccess/ItemPersister.php index d7675f9b9..9b75d3f8c 100644 --- a/src/MetaModels/DataAccess/ItemPersister.php +++ b/src/MetaModels/DataAccess/ItemPersister.php @@ -212,7 +212,7 @@ private function saveRawColumns(array $columns, array $ids) ->database ->prepare( sprintf( - 'UPDATE %1$s %%s=? WHERE id IN (%3$s)', + 'UPDATE %1$s %%s=? WHERE id IN (%2$s)', $this->tableName, $this->buildDatabaseParameterList($ids) )