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.