Be warned this will interpolate $sth, and not call err etc on it. Instead, do:$dbInsert=$db->prepare($insertCom) or die "DBI prepare failed! : $sth- +>err : $sth->errstr";
$dbInsert=$db->prepare($insertCom) or die "DBI prepare failed! : ${\$sth->err} : ${\$sth->errstr}";
In reply to Re^2: Can I get the actual error for DBI->execute() ?
by etj
in thread Can I get the actual error for DBI->execute() ?
by SergioQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |