Trying hard to get aggregations done right

This commit is contained in:
Thomas Gelf 2013-08-20 23:37:49 +02:00 committed by Eric Lippmann
parent 7e83099ef7
commit 93e54fac62
1 changed files with 8 additions and 0 deletions

View File

@ -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()