in reply to Re^3: Toggling dbi attribute within a connection?
in thread Toggling dbi attribute within a connection?

The error complains about 'DELETE', yes, but I am calling 'delete'.
delete $dbh->{RaiseError};
Minimal example of code as follows:

# at this point RaiseError is off as per default connection { local $dbh->{RaiseError} = 1; LABEL_START_TRANSACTION1: eval { # prepare the sql statement $sth = $dbh->prepare($sql); # execute the sql statement $sth->execute(); }; } if ($@) { .. handle the error }
But at this point, right below where this code ends, dbi calls still act as if I have RaiseError turned on.

Matt