Skip to content

Commit

Permalink
Fix missing select clause on some queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rault committed Aug 24, 2016
1 parent ecba8b0 commit 5b8fa9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ protected function compileLimit(Builder $query, $limit)
*/
public function compileSelect(Builder $query)
{
if (is_null($query->columns)) $query->columns = array('*');

$components = $this->compileComponents($query);

// If an offset is present on the query, we will need to wrap the query in
Expand Down

0 comments on commit 5b8fa9d

Please sign in to comment.