Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mavinoo authored Apr 7, 2018
1 parent 2782db4 commit 87f2f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function update($table, $values, $index)
. 'ELSE `'.$k.'` END), ';
}

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

return DB::statement($query);
}
Expand Down

0 comments on commit 87f2f1c

Please sign in to comment.