summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-20 16:39:01 +0200
committerlpsolit%gmail.com <>2006-06-20 16:39:01 +0200
commit5ffe3d31dde3c11525ff09ce17e4b0d730e5e2fd (patch)
tree0b9d599b66539790f093991462b0e759d183cf53 /Bugzilla.pm
parent9eb55706632461dac42ab005c0da8e18814135cb (diff)
downloadbugzilla-5ffe3d31dde3c11525ff09ce17e4b0d730e5e2fd.tar.gz
bugzilla-5ffe3d31dde3c11525ff09ce17e4b0d730e5e2fd.tar.xz
Bug 278017: Eliminate use of deprecated Bugzilla::DB routines (SendSQL, etc.) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm11
1 files changed, 0 insertions, 11 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index ea7740151..8c58454ed 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -315,17 +315,6 @@ sub _cleanup {
undef $_cgi;
undef $_user;
- # See bug 192531. If we don't clear the possibly active statement handles,
- # then when this is called from the END block, it happens _before_ the
- # destructors in Bugzilla::DB have happened.
- # See http://rt.perl.org/rt2/Ticket/Display.html?id=17450#38810
- # Without disconnecting explicitly here, noone notices, because DBI::END
- # ends up calling DBD::mysql's $drh->disconnect_all, which is a noop.
- # This code is evil, but it needs to be done, at least until SendSQL and
- # friends can be removed
- @Bugzilla::DB::SQLStateStack = ();
- undef $Bugzilla::DB::_current_sth;
-
# When we support transactions, need to ->rollback here
$_dbh_main->disconnect if $_dbh_main;
$_dbh_shadow->disconnect if $_dbh_shadow && Bugzilla->params->{"shadowdb"};