Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #3330] wrong selects not working with other databases than mysql #947
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3330
Created by sanchopanza on 2012-10-23 16:01:09 +00:00
when you expand the submenu for a host, hostgroup, servicegroup and want to jump to a hostgroup, servicegroup etc. you get a blank screen. The reason for this is a sql statement with a wrong "group by". For reasons I do not understand mysql accepts this statement, but to my knowledge no other database does. Since we run icinga on postgres this is quite a problem.
This is an example for these statements:
SELECT DISTINCT i.icon_image AS i__0,
Updated by abraxas on 2012-11-07 19:37:09 +00:00
Attached is a patch that eliminated these "flawed" groupby statements entirely that works good for our setup.
We couldn't really figure out why these group by statements were in place at all.
Updated by jmosshammer on 2012-12-19 15:28:42 +00:00
changed it back to the old behaviour (causing duplicates) in my jmosshammer/performance branch.