StatusQuery: Use pipes as concat
PostgreSQL does not support CONCAT() refs #4187
This commit is contained in:
parent
3c56f5c53a
commit
f4b8b369a8
|
@ -32,7 +32,7 @@ class StatusQuery extends AbstractQuery
|
|||
'host_check_command' => 'hs.check_command',
|
||||
'host_current_check_attempt' => 'hs.current_check_attempt',
|
||||
'host_max_check_attempts' => 'hs.max_check_attempts',
|
||||
'host_attempt' => 'CONCAT(hs.current_check_attempt, \'/\', hs.max_check_attempts)',
|
||||
'host_attempt' => 'hs.current_check_attempt || \'/\' || hs.max_check_attempts',
|
||||
'host_last_check' => 'hs.last_check',
|
||||
'host_next_check' => 'hs.next_check',
|
||||
'host_check_type' => 'hs.check_type',
|
||||
|
@ -135,7 +135,7 @@ class StatusQuery extends AbstractQuery
|
|||
'service_last_time_unknown' => 'ss.last_time_unknown',
|
||||
'service_current_check_attempt' => 'ss.current_check_attempt',
|
||||
'service_max_check_attempts' => 'ss.max_check_attempts',
|
||||
'service_attempt' => 'CONCAT(ss.current_check_attempt, \'/\', ss.max_check_attempts)',
|
||||
'service_attempt' => 'ss.current_check_attempt || \'/\' || ss.max_check_attempts',
|
||||
'service_last_check' => 'ss.last_check',
|
||||
'service_next_check' => 'ss.next_check',
|
||||
'service_check_type' => 'ss.check_type',
|
||||
|
|
Loading…
Reference in New Issue