Skip to content

Commit 5b8fa9d

Browse files
author
Maxime Rault
committed
Fix missing select clause on some queries.
1 parent ecba8b0 commit 5b8fa9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Query/Grammars/DB2Grammar.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ protected function compileLimit(Builder $query, $limit)
4040
*/
4141
public function compileSelect(Builder $query)
4242
{
43+
if (is_null($query->columns)) $query->columns = array('*');
44+
4345
$components = $this->compileComponents($query);
4446

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

0 commit comments

Comments
 (0)