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. --- CGI.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index abf46a9d5..bbc5863ed 100644 --- a/CGI.pl +++ b/CGI.pl @@ -523,16 +523,16 @@ sub DumpBugActivity { my ($id, $starttime) = (@_); my $datepart = ""; if (defined $starttime) { - $datepart = "and bugs_activity.when >= $starttime"; + $datepart = "and bugs_activity.bug_when >= $starttime"; } my $query = " - select bugs_activity.field, bugs_activity.when, + select bugs_activity.field, bugs_activity.bug_when, bugs_activity.oldvalue, bugs_activity.newvalue, profiles.login_name from bugs_activity,profiles where bugs_activity.bug_id = $id $datepart and profiles.userid = bugs_activity.who - order by bugs_activity.when"; + order by bugs_activity.bug_when"; SendSQL($query); -- cgit v1.2.3-24-g4f1b