Fix merge poorly made :(

My bad
This commit is contained in:
Lucas Mezêncio 2016-08-30 11:45:10 -03:00
parent 1d08883ef7
commit a973bc6e7e

View File

@ -51,7 +51,7 @@ class DB2Grammar extends Grammar
public function compileSelect(Builder $query)
{
if (is_null($query->columns)) {
$query->columns = array('*');
$query->columns = ['*'];
}
$components = $this->compileComponents($query);
@ -92,6 +92,10 @@ class DB2Grammar extends Grammar
$columns = (!empty($components['columns']) ? $components['columns'].', ' : 'select');
if ($columns == 'select *, ' && $query->from) {
$columns = 'select '.$this->tablePrefix.$query->from.'.*, ';
}
$components['columns'] = $this->compileOver($orderings, $columns);
unset($components['orders']);