Skip to content

Commit

Permalink
Fix merge poorly made :(
Browse files Browse the repository at this point in the history
My bad
  • Loading branch information
Lucas Mezêncio committed Aug 30, 2016
1 parent 1d08883 commit a973bc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function compileLimit(Builder $query, $limit)
public function compileSelect(Builder $query)
{
if (is_null($query->columns)) {
$query->columns = array('*');
$query->columns = ['*'];
}

$components = $this->compileComponents($query);
Expand Down Expand Up @@ -92,6 +92,10 @@ protected function compileAnsiOffset(Builder $query, $components)

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

0 comments on commit a973bc6

Please sign in to comment.