summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-06-03 22:36:39 +0200
committerbbaetz%student.usyd.edu.au <>2002-06-03 22:36:39 +0200
commit814addc504ded181a28142903dd0ecb156f4a328 (patch)
treed5bc1c6593f1a58c372e8c7b5bf03d70df44bbf0
parent9985608aaca69b8f61f22146c81c4773078e35ad (diff)
downloadbugzilla-814addc504ded181a28142903dd0ecb156f4a328.tar.gz
bugzilla-814addc504ded181a28142903dd0ecb156f4a328.tar.xz
Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state
r=justdave, jouni
-rw-r--r--globals.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index bb6a0abc5..637955bd6 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;
}