Skip to content

Commit

Permalink
bug fix (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
atielking authored Mar 5, 2021
1 parent 286eeb6 commit f26b555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,16 @@ protected function applySet(
$row = DataIntegrity::coerceToSchema($row, $table_schema);
$result = DataIntegrity::checkUniqueConstraints($original_table, $row, $table_schema, $row_id);
if ($result is nonnull) {
if($this->ignoreDupes) {
if ($this->ignoreDupes) {
continue;
}
if(!QueryContext::$relaxUniqueConstraints) {
if (!QueryContext::$relaxUniqueConstraints) {
throw new SQLFakeUniqueKeyViolation($result[0]);
}
}
$original_table[$row_id] = $row;
$update_count++;
}
$original_table[$row_id] = $row;
$update_count++;
}
}

Expand Down

0 comments on commit f26b555

Please sign in to comment.