summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-11-23 18:31:44 +0100
committerbbaetz%acm.org <>2003-11-23 18:31:44 +0100
commit83cdee1c166ef315357e05dbf06b596e956e1d3e (patch)
tree9241738c79e03492cbfd0d65644b7e56111e28f3 /Bugzilla
parenta823f15b73fdd149ecb19becc750155d297e8e37 (diff)
downloadbugzilla-83cdee1c166ef315357e05dbf06b596e956e1d3e.tar.gz
bugzilla-83cdee1c166ef315357e05dbf06b596e956e1d3e.tar.xz
Bug 226284 - slow queries for creation_ts
r,a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 3a211e078..73774e82b 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -255,7 +255,6 @@ sub init {
push(@wherepart, "bugs.delta_ts >= $sql_chfrom") if ($sql_chfrom);
push(@wherepart, "bugs.delta_ts <= $sql_chto") if ($sql_chto);
} else {
- push(@supptables, "bugs_activity actcheck");
my $sql_bugschanged = '';
my @list;
foreach my $f (@chfield) {
@@ -269,6 +268,7 @@ sub init {
}
}
if(@list) {
+ push(@supptables, "bugs_activity actcheck");
$sql_bugschanged .= ' OR ' if($sql_bugschanged ne '');
$sql_bugschanged .= "(actcheck.bug_id = bugs.bug_id AND " .
"(" . join(' OR ', @list) . ")";