From: Matt Tyson Date: Fri, 20 Mar 2015 07:54:15 +0000 (+0800) Subject: Bug 1145459: SQL error under postgres when using 'blocks' column in buglist.cgi X-Git-Tag: release-5.1.1~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aa14852570cd060eb0f71760d7f9d82f8bbabc0;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 37f06c354a..2ef0c4f5a0 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 {