Fix bug in update database grammar.
This commit is contained in:
parent
cf6514fbb9
commit
c3c0fbce96
|
@ -301,9 +301,11 @@ public function update(Query $query, $values)
|
|||
{
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue