Merge pull request #16 from lucasmezencio/master

Fix merge poorly made :(
This commit is contained in:
Cooperl Arc Atlantique 2016-08-30 17:04:43 +02:00 committed by GitHub
commit 0f5cbff09d

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']);