Skip to content

Commit

Permalink
Merge pull request #16 from lucasmezencio/master
Browse files Browse the repository at this point in the history
Fix merge poorly made :(
  • Loading branch information
cooperl22 authored Aug 30, 2016
2 parents 4374796 + a973bc6 commit 0f5cbff
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 0f5cbff

Please sign in to comment.