src/db/Grammar.class.php
protected function compileColumns(Builder $query, $columns) {
		
		// If the query is performing an aggregating select, we will let that
		// compiler handle the building of the select clauses.
		if (!is_null($query->aggregate)) {
			return;
		}
		
		$select = $query->distinct ? 'select distinct ' : 'select ';
		
		return $select.$this->columnize($columns);
	}
protected function compileColumns(Builder $query, $columns) {
		
		// If the query is performing an aggregating select, we will let that
		// compiler handle the building of the select clauses.
		if (!is_null($query->aggregate)) {
			return;
		}
		
		$select = $query->distinct ? 'select distinct ' : 'select ';
		
		return $select.$this->columnize($columns);
	}
Compile the "select *" portion of the query.

@param Builder $query
@param array $columns
@return string