Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
bohanyang committed Aug 3, 2023
1 parent a264793 commit cd1b447
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mango/Doctrine/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ public function updateSetFrom(Query $update, Query $select, ?int $expectedRowNum
$types[] = $update->getParameterTypes();
$types[] = $select->getParameterTypes();

$rowNum = $this->connection->executeStatement($sql, array_merge(...$params), array_merge(...$types));
$params = array_merge(...$params);
$types = array_merge(...$types);

$rowNum = $this->connection->executeStatement($sql, $params, $types);

if ($rowNum !== ($expectedRowNum ?? $rowNum)) {
throw RowNumUnmatched::create($expectedRowNum, $rowNum);
Expand Down

0 comments on commit cd1b447

Please sign in to comment.