summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-09-16 02:25:26 +0200
committerterry%mozilla.org <>1999-09-16 02:25:26 +0200
commit1008fc9fa512222979ae23e02e7db30c3e04d592 (patch)
tree60737cf5fccb9580fa83e14422bf2cb60d522ace /CGI.pl
parent20269fbbc7fe9226f2ed8a4c0470d7c84b795591 (diff)
downloadbugzilla-1008fc9fa512222979ae23e02e7db30c3e04d592.tar.gz
bugzilla-1008fc9fa512222979ae23e02e7db30c3e04d592.tar.xz
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.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl6
1 files changed, 3 insertions, 3 deletions
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);