On Monday, November 25, 2002, at 04:04  PM, Tim Bunce wrote:

Perl 5.8.0 is (quite reasonably) clearing refs in lexical variables
in a more timely manner when the sub exists.

The failing test in 07kids.t isn't testing anything significant
so I've just replaced it with a comment:

# Testing $dbh->{Kids} here is unstable because we would be relying on
# when perl chooses to call DESTROY the lexical $sth created within prepare()
# The HandleError sub doesn't get called until the do() is returning
# and recent perl's (>=5.8.0) have destroyed the handle by then (quite reasonably).

# When a HandleEvent attribute gets added to the DBI then we'll probably call that
# at the moment the error is registered, and so we could test $sth->{Kids} then.
Ah, how interesting. Makes sense.

Um, what is HandleEvent? Have you described it somewhere?

David

--
David Wheeler                                     AIM: dwTheory
[EMAIL PROTECTED]                                 ICQ: 15726394
http://david.wheeler.net/                      Yahoo!: dew7e
                                               Jabber: [EMAIL PROTECTED]

Reply via email to