From 62eecf24480520e204ab0057f8f7845c13f37c13 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Sat, 19 Feb 2005 00:01:47 +0000 Subject: Bug 280494: Replace "SELECT LAST_INSERT_ID()" with Bugzilla::DB function call Patch By Tomas Kopal r=mkanat, a=justdave --- editgroups.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editgroups.cgi') diff --git a/editgroups.cgi b/editgroups.cgi index c3be719c7..02f24b1e4 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -274,8 +274,7 @@ if ($action eq 'new') { "1," . SqlQuote($regexp) . ", " . $isactive . ", NOW())" ); - SendSQL("SELECT last_insert_id()"); - my $gid = FetchOneColumn(); + my $gid = $dbh->bz_last_key('groups', 'id'); my $admin = GroupNameToId('admin'); # Since we created a new group, give the "admin" group all privileges # initially. -- cgit v1.2.1