From 4aa14852570cd060eb0f71760d7f9d82f8bbabc0 Mon Sep 17 00:00:00 2001 From: Matt Tyson Date: Fri, 20 Mar 2015 15:54:15 +0800 Subject: Bug 1145459: SQL error under postgres when using 'blocks' column in buglist.cgi r=glob,a=glob --- Bugzilla/DB/Pg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index 37f06c354..2ef0c4f5a 100644 --- a/Bugzilla/DB/Pg.pm +++ b/Bugzilla/DB/Pg.pm @@ -107,7 +107,7 @@ sub sql_group_concat { return "ARRAY_TO_STRING(ARRAY_AGG($text$order_by), $separator)"; } - return "STRING_AGG($text, $separator$order_by)"; + return "STRING_AGG(${text}::text, $separator${order_by}::text)" } sub sql_istring { -- cgit v1.2.3-24-g4f1b