I\'m using Perl\'s DBI module. I prepare a statement using placeholders, then execute the query.
Is it possible to print out the final query that was executed without ma
For perl neophytes, my solution, copied from not2qubit and simplified/hopefully made a bit more generic/reuseable:
sub dump_query { my $tquery = shift; my @args = shift; my $j; foreach my $j (@args) { $tquery =~ s/\?/\'$j\'/; } print STDERR "$tquery\n\n"; }