From 1008fc9fa512222979ae23e02e7db30c3e04d592 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Thu, 16 Sep 1999 00:25:26 +0000 Subject: Patch by daa@rmi.net (Dave Avery) -- newer alphas of MySQL won't let use "when" as a column name, so let's change our usage while it's still easy to do so. --- buglist.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 07e05900f..24584e6fe 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -392,13 +392,13 @@ if (defined $ref && 0 < @$ref) { } $query .= "and bugs_activity.bug_id = bugs.bug_id and (" . join(' or ', @list) . ") "; - $query .= "and bugs_activity.when >= " . + $query .= "and bugs_activity.bug_when >= " . SqlifyDate($::FORM{'chfieldfrom'}) . "\n"; my $to = $::FORM{'chfieldto'}; if (defined $to) { $to = trim($to); if ($to ne "" && $to !~ /^now$/i) { - $query .= "and bugs_activity.when <= " . SqlifyDate($to) . "\n"; + $query .= "and bugs_activity.bug_when <= " . SqlifyDate($to) . "\n"; } } my $value = $::FORM{'chfieldvalue'}; -- cgit v1.2.3-24-g4f1b