Skip to content

Commit 1bc7446

Browse files
authored
Merge pull request #6 from faenir/patch-1
Revert SET
2 parents 87f2f1c + 13c7ea3 commit 1bc7446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelBatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function update($table, $values, $index)
6262
. 'ELSE `'.$k.'` END), ';
6363
}
6464

65-
$query = "UPDATE `$table` " . substr($cases, 0, -2) . " WHERE `$index` IN(" . implode(',', $ids) . ");";
65+
$query = "UPDATE `$table` SET " . substr($cases, 0, -2) . " WHERE `$index` IN(" . implode(',', $ids) . ");";
6666

6767
return DB::statement($query);
6868
}

0 commit comments

Comments
 (0)