P is for Practical | |
PerlMonks |
Using Data::Dumper on a MySQL statement handleby Anonymous Monk |
on Nov 10, 2010 at 16:42 UTC ( [id://870621]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello. I have used Data::Dumper successfully but I am stumped if I can even use it on this.
I have a statement handle in my code that's pretty straight forward. The DBI is being subclassed in DBConnect to add comments to the SQL statement. I need to write a unit test right now to check the SELECT before it being executed. This is all a roundabout way of asking if it's possible to use Dumper on $sth (or $dbh) to see what the parameters are and to verify that the comments are correctly attached to the SQL statement. Many thanks ahead for the advice.
Back to
Seekers of Perl Wisdom
|
|