Here is what I do sometimes during debugging to see what values will be put into the placeholders by DBI for me:
my $statement = $sql; $statement =~ s/\?/$dbh->quote($_)/e for @bindvals; print "The SQL query will be: [$statement]";
In reply to (dkubb) Re: (2) dbi & placeholders: getting the actual sql
by Anonymous Monk
in thread dbi & placeholders: getting the actual sql
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |