Fix wrong contactgroup service column and make better use of MySQL indexes

This commit is contained in:
Thomas Gelf 2014-04-17 16:14:57 +00:00
parent 070e608236
commit 54175f98bf
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class ContactgroupQuery extends IdoQuery
'services' => array(
'service_object_id' => 'so.object_id',
'service_host_name' => 'so.name1 COLLATE latin1_general_ci',
'service' => 'so.name1 COLLATE latin1_general_ci',
'service' => 'so.name2 COLLATE latin1_general_ci',
'service_description' => 'so.name2 COLLATE latin1_general_ci',
)
);
@ -96,7 +96,7 @@ class ContactgroupQuery extends IdoQuery
{
$scgSub = $this->db->select()->distinct()
->from($this->prefix . 'service_contactgroups', array(
'contactgroup_object_id', 'service_id'
'service_id', 'contactgroup_object_id'
));
/*