summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-12-07 14:09:04 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-12-07 14:09:04 +0100
commit317c9afd691564304f448066b961554eb966039a (patch)
treed5d94eff23bcc8ef567b7abdef99637d935a0763
parentd8b74774531bf854695f6b1497a405bc78b54559 (diff)
downloadbugzilla-317c9afd691564304f448066b961554eb966039a.tar.gz
bugzilla-317c9afd691564304f448066b961554eb966039a.tar.xz
Bug 818007: Searching by commenter is slow
r=dkl a=LpSolit
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 95f03a6ae..656d163ea 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2269,7 +2269,7 @@ sub _user_nonchanged {
my $table = $first_join->{table};
my $columns = "bug_id";
$columns .= ",isprivate" if @{ $first_join->{extra} };
- my $new_table = "SELECT $columns FROM $table AS $as $join_sql";
+ my $new_table = "SELECT DISTINCT $columns FROM $table AS $as $join_sql";
$first_join->{table} = "($new_table)";
# We always want to LEFT JOIN the generated table.
delete $first_join->{join};