mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user