Skip to content

Commit

Permalink
Update Batch.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mavinoo authored Sep 15, 2020
1 parent 0b6302a commit c6949ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function update(Model $table, array $values, string $index = null, bool $
if ($field !== $index) {
$finalField = $raw ? Common::mysql_escape($val[$field]) : "'" . Common::mysql_escape($val[$field]) . "'";
$value = (is_null($val[$field]) ? 'NULL' : $finalField);
$final[$field][] = 'WHEN "' . $index . '" = \'' . $val[$index] . '\' THEN ' . $value . ' ';
$final[$field][] = 'WHEN `' . $index . '` = \'' . $val[$index] . '\' THEN ' . $value . ' ';
}
}
}
Expand Down

0 comments on commit c6949ca

Please sign in to comment.