Set custom DBI error handlers
Posted by brian d foy on July 11, 2010
0 comments
The DBI module lets you handle errors yourself if you don’t like its built-in behavior. DBI lets you handle the errors at either the database or the statement handle level by specifying attributes: my $dbh = DBI->connect( …, …, \%attr ); my $sth = $dbh->prepare( …, \%attr ); There are several attributes that affect error [...]
