From f4b8b369a8aa826b050c2db26151a88395c393b3 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 16 Aug 2013 16:17:44 +0200 Subject: [PATCH] StatusQuery: Use pipes as concat PostgreSQL does not support CONCAT() refs #4187 --- .../library/Monitoring/Backend/Ido/Query/StatusQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php index a37e7203f..3f76ef8b5 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php @@ -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',