|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: "Database handle destroyed without explicit disconnect"
Date: Dec 8 1999 6:57PM
Hrvoje Niksic writes:
> 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.
Ask Tim Bunce (on the dbi-users mailing list).
He wrote the DBI module (which triggers the above message -
DBD::Sybase can't really intervene, or at least I don't think so)
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|