| 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 0 | Penny Vaughan | 4 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | Nick Tonkin | 4 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | Nick Tonkin | 5 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | Jochen Wiedmann | 5 Dec |
| • list of open DB handles? | Bernd Prager | 10 Dec |
| • Re: list of open DB handles? | Jochen Wiedmann | 10 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | Ruben Safir | 5 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | sherzodR | 5 Dec |
| • RE: $dbh->{'mysql_insertid'} returning 0 | Penny Vaughan | 5 Dec |
| • RE: $dbh->{'mysql_insertid'} returning 0 | Penny Vaughan | 5 Dec |
| • Re: $dbh->{'mysql_insertid'} returning 0 | Chuck O'Donnell | 5 Dec |
| • RE: $dbh->{'mysql_insertid'} returning 0 | Penny Vaughan | 5 Dec |
