StatusQuery: Use pipes as concat

PostgreSQL does not support CONCAT()

refs #4187
This commit is contained in:
Eric Lippmann 2013-08-16 16:17:44 +02:00
parent 3c56f5c53a
commit f4b8b369a8
1 changed files with 2 additions and 2 deletions

View File

@ -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',