From 4b5b03e55429a6e1c531650aa5be00f624b2bfa2 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 16 Oct 2013 22:26:31 +0800 Subject: Bug 926109: Error when searching for many columns at once (MariaDB can only use 61 tables in a join) --- buglist.cgi | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 6ffbea94f..9c7281822 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -546,16 +546,7 @@ if (defined $params->param('columnlist')) { if ($params->param('columnlist') eq "all") { # If the value of the CGI parameter is "all", display all columns, # but remove the redundant "short_desc" column. - # BMO: Skip tracking flag columns when retrieving all columns - # MySQL bombs on greater than 61 joins. - my @non_tf_columns; - foreach my $column (keys %$columns) { - next if $column eq 'short_desc'; - next if ($column =~ /^cf_(blocking|tracking|status)/ - && $columns->{$column}->{name} =~ /^COALESCE/); - push(@non_tf_columns, $column); - } - @displaycolumns = @non_tf_columns; + @displaycolumns = grep($_ ne 'short_desc', keys(%$columns)); } else { @displaycolumns = split(/[ ,]+/, $params->param('columnlist')); -- cgit v1.2.3-24-g4f1b