]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1145459: SQL error under postgres when using 'blocks' column in buglist.cgi
authorMatt Tyson <mtyson@redhat.com>
Fri, 20 Mar 2015 07:54:15 +0000 (15:54 +0800)
committerByron Jones <glob@mozilla.com>
Fri, 20 Mar 2015 07:54:15 +0000 (15:54 +0800)
r=glob,a=glob

Bugzilla/DB/Pg.pm

index 37f06c354a50ef2671848122f18a779b0f648b49..2ef0c4f5a09257f5b9faf5843b8f0d9eda0faacc 100644 (file)
@@ -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 {