monitoring: Use grouping instead of distinct in the host comment query

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-05 11:46:45 +02:00
parent 0719c294d8
commit 044027772d

View File

@ -101,7 +101,7 @@ class HostcommentQuery extends IdoQuery
'hgo.objecttype_id = ?', 'hgo.objecttype_id = ?',
3 3
); );
$this->distinct(); $this->group('ho.name1');
} }
/** /**
@ -154,7 +154,7 @@ class HostcommentQuery extends IdoQuery
'sgo.objecttype_id = ?', 'sgo.objecttype_id = ?',
4 4
); );
$this->distinct(); $this->group('ho.name1');
} }
/** /**
@ -178,6 +178,6 @@ class HostcommentQuery extends IdoQuery
'so.objecttype_id = ?', 'so.objecttype_id = ?',
2 2
); );
$this->distinct(); $this->group('ho.name1');
} }
} }