On Wed, Apr 10, 2002 at 10:47:31AM -0400, [EMAIL PROTECTED] wrote:
> 
> 
> > One slight downside is that $DBI::PurePerl::lasth will hold a reference
> > to the last handle thus potentially preventing global destruction.
> > The DBI plays naughty low-level tricks to avoid that.
> > But we'll need $DBI::PurePerl::lasth to emulate $DBI::lasth so
> > we have to face it. Optionally using this
> >     http://search.cpan.org/doc/LUKKA/WeakRef-0.01/WeakRef.pm
> > if available will help.
> >
> > Tim.
> 
> Is $DBI::lasth really worth the trouble?  I would rather not have to use one
> handle just to free another.  I'm already paranoid about my handles not getting
> freed.  What does $DBI::lasth give users that they can't get otherwise?

It could possibly be avoided with DBI::PurePerl at the cost of some speed.
But that's probably not a big issue :-)

Jeff, for the time being try just having set_err() also do
        $DBI::err = $h->{err};
        $DBI::errstr = $h->{errstr};
        $DBI::state  = $h->{state}; # might need some extra logic here

Tim.

Reply via email to