Browse files

fixed missing group by clause

fixed mysql error "SELECT list is not in GROUP BY clause and contains nonaggregated column 'icinga2idomysql.o.name1' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by"
1 parent ae076eb commit 7695aeff80a8c76576d673462e41fda5758eaec8 @SteScho SteScho committed on GitHub Jan 11, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 share/server/core/classes/GlobalBackendndomy.php
@@ -885,7 +885,7 @@ public function getHostMemberCounts($objects, $options, $filters) {
AND (s.config_type='.$this->objConfigType.' AND s.instance_id='.$this->dbInstanceId.' AND s.service_object_id=o.object_id)
AND (h.config_type='.$this->objConfigType.' AND h.instance_id='.$this->dbInstanceId.' AND h.host_object_id=s.host_object_id)
AND (hs.host_object_id=h.host_object_id)
- GROUP BY h.host_object_id, h.alias');
+ GROUP BY h.host_object_id, h.alias, o.name1');
$arrReturn = Array();
while($data = mysqli_fetch_assoc($QUERYHANDLE)) {

0 comments on commit 7695aef

Please sign in to comment.