Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 84873
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: POWERMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: wrong doc
Doc for "selectall_arrayref" says: If "RaiseError" is not set and any method except "fetchall_arrayref" fails then "selectall_arrayref" will return "undef"; if "fetchall_arrayref" fails then it will return with whatever data has been fetched thus far. You should check "$sth->err" afterwards (or use the "RaiseError" attribute) to discover if the data is complete or was truncated due to an error. But there is no $sth available outside of selectall_arrayref. Probably this should be $dbh instead of $sth or this error isn't accessible.
On Fri Apr 26 10:44:11 2013, POWERMAN wrote: Show quoted text
> But there is no $sth available outside of selectall_arrayref. Probably > this should be $dbh instead of $sth or this error isn't accessible.
"selectall_hashref" and "selectcol_arrayref" mention $DBI::err, so probably it should be used instead of $sth->err.
Fixed. Thanks!