aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-09 00:51:02 +0000
committertravis%sedsystems.ca <>2005-02-09 00:51:02 +0000
commitf8aeecaf8cd33d87315c5a50be9a762e142062a4 (patch)
treec92dc215a4f6780005bacf825fb6fbdc39552ae1 /globals.pl
parentBug 276838 : Eliminate use of $::unconfirmedstate (diff)
downloadbugzilla-f8aeecaf8cd33d87315c5a50be9a762e142062a4.tar.gz
bugzilla-f8aeecaf8cd33d87315c5a50be9a762e142062a4.tar.bz2
bugzilla-f8aeecaf8cd33d87315c5a50be9a762e142062a4.zip
Bug 257315 : type of delta_ts in bugs table should not be timestamp
Patch by Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, LpSolit a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl
index 7a0ccebaa..f4a11e72f 100644
--- a/globals.pl
+++ b/globals.pl
@@ -137,7 +137,7 @@ sub AppendComment {
"VALUES($bugid, $whoid, $timestamp, " . SqlQuote($comment) . ", " .
$privacyval . ", " . SqlQuote($work_time) . ")");
- SendSQL("UPDATE bugs SET delta_ts = now() WHERE bug_id = $bugid");
+ SendSQL("UPDATE bugs SET delta_ts = $timestamp WHERE bug_id = $bugid");
}
sub GetFieldID {
@@ -1269,8 +1269,7 @@ sub RemoveVotes {
SendSQL("SELECT SUM(vote_count) FROM votes WHERE bug_id = $id");
my $v = FetchOneColumn();
$v ||= 0;
- SendSQL("UPDATE bugs SET votes = $v, delta_ts = delta_ts " .
- "WHERE bug_id = $id");
+ SendSQL("UPDATE bugs SET votes = $v WHERE bug_id = $id");
}
}