From: Matt Tyson Date: Fri, 20 Mar 2015 07:55:07 +0000 (+0800) Subject: Bug 1145459: SQL error under postgres when using 'blocks' column in buglist.cgi X-Git-Tag: bugzilla-5.0rc3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485ad42eb9f1ca77e1ea53b8c4dadd2375dd4522;p=thirdparty%2Fbugzilla.git Bug 1145459: SQL error under postgres when using 'blocks' column in buglist.cgi r=glob,a=glob --- diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index 4ec95725de..47d43a4fe0 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 {