]> 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:55:07 +0000 (15:55 +0800)
committerByron Jones <glob@mozilla.com>
Fri, 20 Mar 2015 07:55:07 +0000 (15:55 +0800)
r=glob,a=glob

Bugzilla/DB/Pg.pm

index 4ec95725de80bb4c7dc56eb0a8208cb1282c5793..47d43a4fe0e256b1257c31c9b3e4310d585c47a7 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 {