in reply to Can I get the actual error for DBI->execute() ?

may I suggest setting the connect option HandleError? see https://metacpan.org/pod/DBI#HandleError.
  • Comment on Re: Can I get the actual error for DBI->execute() ?