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

Looks like $sth was an invention in Re: Can I get the actual error for DBI->execute() ?. Anyway, my suggestion would be
$dbInsert=$db->prepare($insertCom) or die join(" : ", "DBI prepare failed!",$db->err, $db->errstr);
which also would make it easier to extend the error message, if needed.

Replies are listed 'Best First'.
Re^4: Can I get the actual error for DBI->execute() ?
by ikegami (Patriarch) on Jun 22, 2024 at 20:52 UTC