So, I have this extremely simplified snippet:
@cmd_arry = ("Bob Newhart", "54"); $sqlCmd = "UPDATE foobar SET name = ?, age = ?"; $sth = $dbh->prepare( $sqlCmd); $resultCnt = $sth->execute( @cmd_arry); if( my $errMsg = $dbh->errstr) { $what_actually_executed = <what?>
Question: how can I get the AS EXECUTED statement, i.e. after data binding? I need a way to capture an executable statement, related related values, if something goes wrong.
source share