in reply to Re^3: Toggling dbi attribute within a connection?
in thread Toggling dbi attribute within a connection?
Minimal example of code as follows:delete $dbh->{RaiseError};
But at this point, right below where this code ends, dbi calls still act as if I have RaiseError turned on.# 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 }
|
|---|