summaryrefslogtreecommitdiffstats
path: root/contrib/bug_email.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-19 01:01:47 +0100
committermkanat%kerio.com <>2005-02-19 01:01:47 +0100
commit62eecf24480520e204ab0057f8f7845c13f37c13 (patch)
tree99252665b81610168701173d4b5ce272c378fda6 /contrib/bug_email.pl
parentc720bf60573fdb92874056ffd07c3d6055df22af (diff)
downloadbugzilla-62eecf24480520e204ab0057f8f7845c13f37c13.tar.gz
bugzilla-62eecf24480520e204ab0057f8f7845c13f37c13.tar.xz
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 'contrib/bug_email.pl')
-rwxr-xr-xcontrib/bug_email.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/bug_email.pl b/contrib/bug_email.pl
index 1f2f28421..7fb6b533c 100755
--- a/contrib/bug_email.pl
+++ b/contrib/bug_email.pl
@@ -38,7 +38,7 @@
#
# You need to work with bug_email.pl the MIME::Parser installed.
#
-# $Id: bug_email.pl,v 1.23 2005/02/08 16:51:03 travis%sedsystems.ca Exp $
+# $Id: bug_email.pl,v 1.24 2005/02/18 16:01:48 mkanat%kerio.com Exp $
###############################################################
# 02/12/2000 (SML)
@@ -1151,8 +1151,7 @@ END
if( ! $test ) {
SendSQL($query);
- SendSQL("select LAST_INSERT_ID()");
- $id = FetchOneColumn();
+ $id = Bugzilla->dbh->bz_last_key('bugs', 'bug_id');
my $long_desc_query = "INSERT INTO longdescs SET bug_id=$id, who=$userid, bug_when=\'$bug_when\', thetext=" . SqlQuote($comment);
SendSQL($long_desc_query);