PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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.