On 8/8/07 10:55 AM, Philip Dye wrote:
>     $rv = $sth->rows;
> 
>     Returns the number of rows affected by the last row affecting
>     command, or -1 if the number of rows is not known or not available.

In SVN, I changed in from:

    if($rows > 0)

to

    if($rows > 0 || $rows == -1)

which should cover all bases...unless some DBD returns -1 when zero rows are
found?  Hrm...

-John



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to