Tim Bunce skrev: > > I'm thinking in terms of adding a $h->{HandleWarn} callback that'll > be called by the DBI when it detects that err() has been set to 0. > > Something like: > > $h->{HandleWarn} = sub { > my ($errstr, $h, $state) = @_; > ... > return ...; # new value for err() > }; > > It'll be called just before the existing RaiseError checks to it can > easily 'promote' a warning to an error. > > Any comments?
Sounds like just what I wanted. Thanks.