Fix missing select clause on some queries.

This commit is contained in:
Maxime Rault 2016-08-24 09:59:00 +02:00
parent ecba8b0b03
commit 5b8fa9da42

View File

@ -40,6 +40,8 @@ class DB2Grammar extends Grammar
*/ */
public function compileSelect(Builder $query) public function compileSelect(Builder $query)
{ {
if (is_null($query->columns)) $query->columns = array('*');
$components = $this->compileComponents($query); $components = $this->compileComponents($query);
// If an offset is present on the query, we will need to wrap the query in // If an offset is present on the query, we will need to wrap the query in