Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-ObjectDriver CPAN distribution.

Report information
The Basics
Id: 78546
Status: new
Priority: 0/
Queue: Data-ObjectDriver

People
Owner: Nobody in particular
Requestors: shmuelfomberg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: (no value)



Subject: DBI will not always rise an exception for errors
Some operations of Data::ObjectDriver relay on DBI to return an exception. For example, in Data::ObjectDriver::Driver::DBI::_insert_or_replace, the following lines: eval { $sth->execute }; die "Failed to execute $sql with ".join(", ",@$cols).": $@" if $@; However, it is not always true, and can be set using the RaiseError settings. If RaiseError set to 0, then it will return false instead of error. It is possible to temporary set the RaiseError to 1 using this line: local $dbh->{RaiseError} = 1;