summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-29 04:01:27 +0100
committertravis%sedsystems.ca <>2005-01-29 04:01:27 +0100
commited20d719e2df695ed2c9127f364886b902d82a24 (patch)
tree78e3a5205b856822753ff44d7e49f6b967b1d86d /globals.pl
parentfc649d472490ea13b935eccf1ecd692dd7112fd4 (diff)
downloadbugzilla-ed20d719e2df695ed2c9127f364886b902d82a24.tar.gz
bugzilla-ed20d719e2df695ed2c9127f364886b902d82a24.tar.xz
Bug 257315 : type of delta_ts in bugs table should not be timestamp
Patch by Tomas Kopal <Tomas.Kopal@altap.cz> r=vladd, 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 0c1ba852b..73f8ed82c 100644
--- a/globals.pl
+++ b/globals.pl
@@ -138,7 +138,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 {
@@ -1420,8 +1420,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");
}
}