in reply to Re^4: Can I get the actual error for DBI->execute() ?
in thread Can I get the actual error for DBI->execute() ?

SergioQ wrote: And I just wanted to just be clear: setting RaiseError => 1 does cause the script to exit immediately, yes?

Yes. You can also log any errors associated with the database handle without exiting by passing PrintError => 1 and warnings with PrintWarn => 1 to the DBI->connect() call. I generally don't want to make any changes to the database if any errors occur so I use AutoCommit => 0, and only $dbh->commit if everything passes within whatever constraints I set.

  • Comment on Re^5: Can I get the actual error for DBI->execute() ?