Fix merge poorly made :(
My bad
This commit is contained in:
parent
1d08883ef7
commit
a973bc6e7e
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user