diff --git a/src/Query/Grammars/DB2Grammar.php b/src/Query/Grammars/DB2Grammar.php index 21b54ac..57332e6 100644 --- a/src/Query/Grammars/DB2Grammar.php +++ b/src/Query/Grammars/DB2Grammar.php @@ -40,6 +40,8 @@ class DB2Grammar extends Grammar */ 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