diff options
author | mkanat%kerio.com <> | 2005-02-19 00:01:47 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-19 00:01:47 +0000 |
commit | 62eecf24480520e204ab0057f8f7845c13f37c13 (patch) | |
tree | 99252665b81610168701173d4b5ce272c378fda6 /Bugzilla/Auth/Login/WWW/Env.pm | |
parent | c720bf60573fdb92874056ffd07c3d6055df22af (diff) | |
download | bugs-62eecf24480520e204ab0057f8f7845c13f37c13.tar bugs-62eecf24480520e204ab0057f8f7845c13f37c13.tar.gz bugs-62eecf24480520e204ab0057f8f7845c13f37c13.tar.bz2 bugs-62eecf24480520e204ab0057f8f7845c13f37c13.tar.xz bugs-62eecf24480520e204ab0057f8f7845c13f37c13.zip |
Bug 280494: Replace "SELECT LAST_INSERT_ID()" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla/Auth/Login/WWW/Env.pm')
-rw-r--r-- | Bugzilla/Auth/Login/WWW/Env.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Bugzilla/Auth/Login/WWW/Env.pm b/Bugzilla/Auth/Login/WWW/Env.pm index abd176315..54e202bbf 100644 --- a/Bugzilla/Auth/Login/WWW/Env.pm +++ b/Bugzilla/Auth/Login/WWW/Env.pm @@ -116,9 +116,7 @@ sub login { "realname, disabledtext " . ") VALUES ( ?, ?, ?, '' )"); $sth->execute($env_email, '*', $env_realname); - $sth = $dbh->prepare("SELECT last_insert_id()"); - $sth->execute(); - $matched_userid = $sth->fetch->[0]; + $matched_userid = $dbh->bz_last_key('profiles', 'userid'); } } } |