sybperl-l Archive
Up Prev Next
From: Hrvoje Niksic <hniksic at iskon dot hr>
Subject: "Database handle destroyed without explicit disconnect"
Date: Dec 8 1999 9:13AM
When I `die' from a script that uses DBD::Sybase, I get the following
message:
Database handle destroyed without explicit disconnect
./deletedom.pl line 82, chunk 1.
Is this a bug or a feature? Shouldn't `die' properly deallocate all
objects, including calling their finalizer ($dbh->disconnect() in the
case of DBI)?
I know I can circumvent by explicitly calling $dbh->disconnect from
within $SIG{__DIE__}, but I wonder if it's supposed to work that way.
I don't see any utility from not disconnecting automatically.
|