From: bbaetz%student.usyd.edu.au <> Date: Mon, 3 Jun 2002 20:37:07 +0000 (+0000) Subject: Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state X-Git-Tag: bugzilla-2.16rc2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c908f7fb902e665e7990efe1db93a6ffbb1b0986;p=thirdparty%2Fbugzilla.git Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state r=justdave, jouni --- diff --git a/globals.pl b/globals.pl index d22eee65d4..72ea74df9d 100644 --- a/globals.pl +++ b/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; }