Skip to content

Commit c6949ca

Browse files
authored
Update Batch.php
1 parent 0b6302a commit c6949ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Batch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function update(Model $table, array $values, string $index = null, bool $
7272
if ($field !== $index) {
7373
$finalField = $raw ? Common::mysql_escape($val[$field]) : "'" . Common::mysql_escape($val[$field]) . "'";
7474
$value = (is_null($val[$field]) ? 'NULL' : $finalField);
75-
$final[$field][] = 'WHEN "' . $index . '" = \'' . $val[$index] . '\' THEN ' . $value . ' ';
75+
$final[$field][] = 'WHEN `' . $index . '` = \'' . $val[$index] . '\' THEN ' . $value . ' ';
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)