From 8449ddc1397a699e8473ee657b18e1ed6928f4bb Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Sun, 27 Apr 2003 14:20:36 +0000 Subject: Bug 180086 - Rename 'count' column in votes tables patch by bugzilla@chimpychompy.org (GavinS) r=bbaetz,justdave a=justdave --- sanitycheck.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sanitycheck.cgi') diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 16a123967..98734e5b0 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -82,7 +82,7 @@ if (exists $::FORM{'rebuildvotecache'}) { Status("OK, now rebuilding vote cache."); SendSQL("lock tables bugs write, votes read"); SendSQL("update bugs set votes = 0, delta_ts=delta_ts"); - SendSQL("select bug_id, sum(count) from votes group by bug_id"); + SendSQL("select bug_id, sum(vote_count) from votes group by bug_id"); my %votes; while (@row = FetchSQLData()) { my ($id, $v) = (@row); @@ -433,7 +433,7 @@ while (@row = FetchSQLData()) { } Status("Checking cached vote counts"); -SendSQL("select bug_id, sum(count) from votes group by bug_id"); +SendSQL("select bug_id, sum(vote_count) from votes group by bug_id"); while (@row = FetchSQLData()) { my ($id, $v) = (@row); -- cgit v1.2.3-24-g4f1b