Trying hard to get aggregations done right
This commit is contained in:
parent
7e83099ef7
commit
93e54fac62
|
@ -155,6 +155,14 @@ class HoststatusQuery extends AbstractQuery
|
|||
"so.$this->object_id = ss.service_object_id",
|
||||
array()
|
||||
);
|
||||
foreach ($this->columns as $col) {
|
||||
$real = $this->aliasToColumnName($col);
|
||||
if (substr($real, 0, 4) === 'SUM(') {
|
||||
continue;
|
||||
}
|
||||
$this->baseQuery->group($real);
|
||||
}
|
||||
$this->uglySlowConservativeCount = true;
|
||||
}
|
||||
|
||||
protected function joinHostgroups()
|
||||
|
|
Loading…
Reference in New Issue