alias aggregate column in query grammar.
This commit is contained in:
parent
5919b039e6
commit
f6ef233d39
|
@ -93,7 +93,7 @@ protected function aggregate(Query $query)
|
|||
|
||||
if ($query->distinct and $column !== '*') $column = 'DISTINCT '.$column;
|
||||
|
||||
return 'SELECT '.$query->aggregate['aggregator'].'('.$column.')';
|
||||
return 'SELECT '.$query->aggregate['aggregator'].'('.$column.') AS '.$this->wrap('aggregate');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue