How to test status of handler sth?

perl_at_swanmail.com
Date: 10/23/03


Date: Wed, 22 Oct 2003 22:18:18 -0700 (PDT)
To: dbi-users@perl.org

How can I test the status of $sth itself?

A scenario is that a $sth is passed from a sub. And now, I have a $sth. Of
course $sth->rows return 0 or whatever int row. However, a test using
$sth->rows is not good when something is wrong. It return some large
number. So How can I test to see if its bad or good without access to
previous calls?

thanks

-----------------------------------------
eMail solutions by
http://www.swanmail.com



Relevant Pages