List:MySQL and Perl« Previous MessageNext Message »
From:Bernd Prager Date:December 10 2001 8:46am
Subject:list of open DB handles?
View as plain text  
Hi,

I would like to write a kind of general cleanup subroutine for the 
database handles when my program ends. Something like:
$SIG{__DIE__} = $SIG{__INT__} = $SIG{__QUIT__} = \&cleanup.

Is there a way to determine all the open DB and statement handles?
I don't want to code the specific handle 'finish' and 'disconnect'
statements every time again.
Or does somebody has another smart idea how to do that?

Thanks,
-- Bernd


Thread
$dbh->{'mysql_insertid'} returning 0Penny  Vaughan4 Dec
  • Re: $dbh->{'mysql_insertid'} returning 0Nick Tonkin4 Dec
    • Re: $dbh->{'mysql_insertid'} returning 0Nick Tonkin5 Dec
  • Re: $dbh->{'mysql_insertid'} returning 0Jochen Wiedmann5 Dec
  • list of open DB handles?Bernd Prager10 Dec
    • Re: list of open DB handles?Jochen Wiedmann10 Dec
Re: $dbh->{'mysql_insertid'} returning 0Ruben Safir5 Dec
  • Re: $dbh->{'mysql_insertid'} returning 0sherzodR5 Dec
RE: $dbh->{'mysql_insertid'} returning 0Penny  Vaughan5 Dec
RE: $dbh->{'mysql_insertid'} returning 0Penny  Vaughan5 Dec
  • Re: $dbh->{'mysql_insertid'} returning 0Chuck O'Donnell5 Dec
RE: $dbh->{'mysql_insertid'} returning 0Penny  Vaughan5 Dec