From 256f3d1e20fdd41dc7334f4f2770fab437626318 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Mon, 3 Jun 2002 13:37:07 +0000 Subject: [PATCH] Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state r=justdave, jouni git-svn-id: svn://10.0.0.236/branches/BUGZILLA-2_16-BRANCH@122549 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/globals.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/webtools/bugzilla/globals.pl b/mozilla/webtools/bugzilla/globals.pl index d22eee65d43..72ea74df9d2 100644 --- a/mozilla/webtools/bugzilla/globals.pl +++ b/mozilla/webtools/bugzilla/globals.pl @@ -1271,8 +1271,10 @@ sub BugInGroup { sub GroupExists { my ($groupname) = (@_); ConnectToDatabase(); + PushGlobalSQLState(); SendSQL("select count(*) from groups where name=" . SqlQuote($groupname)); my $count = FetchOneColumn(); + PopGlobalSQLState(); return $count; } @@ -1296,8 +1298,10 @@ sub GroupIsActive { my ($groupbit) = (@_); $groupbit ||= 0; ConnectToDatabase(); + PushGlobalSQLState(); SendSQL("select isactive from groups where bit=$groupbit"); my $isactive = FetchOneColumn(); + PopGlobalSQLState(); return $isactive; }