Commit c3c0fbce authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in update database grammar.

parent cf6514fb
...@@ -301,9 +301,11 @@ class Grammar { ...@@ -301,9 +301,11 @@ class Grammar {
{ {
foreach ($values as $column => $value) foreach ($values as $column => $value)
{ {
$columns = $this->wrap($column).' = '.$this->parameter($value); $columns[] = $this->wrap($column).' = '.$this->parameter($value);
} }
$columns = implode(', ', $columns);
return trim('UPDATE '.$this->wrap($query->from).' SET '.$columns.' '.$this->wheres($query)); return trim('UPDATE '.$this->wrap($query->from).' SET '.$columns.' '.$this->wheres($query));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment