Fixes 2266. Special handling of notification 'output' field to avoid using aggregate function in WHERE clause of query...which dumps an error
style fixup, exact === usage
This commit is contained in:
parent
bc1371bad7
commit
5e5a5c68cc
|
@ -68,6 +68,8 @@ class HostnotificationQuery extends IdoQuery
|
|||
{
|
||||
if ($col === 'UNIX_TIMESTAMP(hn.start_time)') {
|
||||
return 'hn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||
} elseif ($col === $this->columnMap['history']['output']) {
|
||||
return parent::whereToSql('hn.output', $sign, $expression);
|
||||
} else {
|
||||
return parent::whereToSql($col, $sign, $expression);
|
||||
}
|
||||
|
|
|
@ -68,6 +68,8 @@ class ServicenotificationQuery extends IdoQuery
|
|||
{
|
||||
if ($col === 'UNIX_TIMESTAMP(sn.start_time)') {
|
||||
return 'sn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression));
|
||||
} elseif ($col === $this->columnMap['history']['output']) {
|
||||
return parent::whereToSql('sn.output', $sign, $expression);
|
||||
} else {
|
||||
return parent::whereToSql($col, $sign, $expression);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue