You can distinguish these cases by checking $sth-err.
So in code you can do something like this:
while( defined $sth->fetch) { # do something with fetched data } if($sth->err) { # handle error } else { # no more data }
In reply to Re^5: DB2 checking for an error on select
by morgon
in thread DB2 checking for an error on select
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |