From ed20d719e2df695ed2c9127f364886b902d82a24 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Sat, 29 Jan 2005 03:01:27 +0000 Subject: Bug 257315 : type of delta_ts in bugs table should not be timestamp Patch by Tomas Kopal r=vladd, LpSolit a=justdave --- globals.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'globals.pl') 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"); } } -- cgit v1.2.1