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 --- editusers.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 9c8de6164..9a6de0d17 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -461,8 +461,7 @@ if ($action eq 'new') { #+++ send e-mail away print "OK, done.
\n"; - SendSQL("SELECT last_insert_id()"); - my ($newuserid) = FetchSQLData(); + my $newuserid = $dbh->bz_last_key('profiles', 'userid'); my $changeduser = new Bugzilla::User($newuserid); $changeduser->derive_groups(); -- cgit v1.2.3-24-g4f1b