It can be done now using the (undocumented) $h->handlers method.

You just do:
  $dbh = DBI->connect.....
  push @{$dbh->{Handlers}}, \&bug_out;

There are some clitches in it, but it does work.
--
Henrik Tougaard, Copenhagen, Denmark
"The first rule of Perl Club is, we don't talk about Perl Club"
    - Dave Cross at YAPC::Europe 2.0.01


> Fra: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
> 
> Definitelly, we've been talking about this for a while now.  
> Not sure if Tim
> had something already set up for the next release???, but if 
> not a patch
> would be great!
> 
> Ilya
> 
> > From: Matthew Wickline [mailto:[EMAIL PROTECTED]]
> > 
> > Would folks be interested in the option of specifying a 
> > coderef for the
> > RaiseError option?

Reply via email to