monitoring: Fix typos in queries after removing ::getGroup()
refs #9956
This commit is contained in:
parent
0f622fe10b
commit
bcbe7640e7
|
@ -97,7 +97,6 @@ class HostdowntimestarthistoryQuery extends IdoQuery
|
|||
}
|
||||
|
||||
$this->joinedVirtualTables['downtimehistory'] = true;
|
||||
$this->joinedVirtualTables['history'] = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -80,7 +80,7 @@ class HoststatehistoryQuery extends IdoQuery
|
|||
if ($col === 'UNIX_TIMESTAMP(hh.state_time)') {
|
||||
return 'hh.state_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||
} elseif (
|
||||
$col === $this->columnMap['history']['type']
|
||||
$col === $this->columnMap['statehistory']['type']
|
||||
&& ! is_array($expression)
|
||||
&& array_key_exists($expression, $this->types)
|
||||
) {
|
||||
|
|
|
@ -16,7 +16,7 @@ class ServicedowntimeQuery extends IdoQuery
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $groupBase = array('downtimes', array('sd.scheduleddowntime_id', 'so.object_id'));
|
||||
protected $groupBase = array('downtimes' => array('sd.scheduleddowntime_id', 'so.object_id'));
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
|
@ -16,7 +16,7 @@ class ServicedowntimestarthistoryQuery extends IdoQuery
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $groupBase = array('downtimehistory', array('sdh.downtimehistory_id', 'so.object_id'));
|
||||
protected $groupBase = array('downtimehistory' => array('sdh.downtimehistory_id', 'so.object_id'));
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
|
@ -16,7 +16,7 @@ class ServicestatehistoryQuery extends IdoQuery
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $groupBase = array('statehistory', array('sh.statehistory_id', 'so.object_id'));
|
||||
protected $groupBase = array('statehistory' => array('sh.statehistory_id', 'so.object_id'));
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@ -81,7 +81,7 @@ class ServicestatehistoryQuery extends IdoQuery
|
|||
if ($col === 'UNIX_TIMESTAMP(sh.state_time)') {
|
||||
return 'sh.state_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||
} elseif (
|
||||
$col === $this->columnMap['history']['type']
|
||||
$col === $this->columnMap['statehistory']['type']
|
||||
&& ! is_array($expression)
|
||||
&& array_key_exists($expression, $this->types)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue