Issue Details (XML | Word | Printable)

Key: ZF-3804
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Ratzloff
Reporter: Matthew Ratzloff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Don't assume a fetch mode in the DbSelect adapter

Created: 29/Jul/08 02:59 PM   Updated: 07/Aug/08 08:29 PM   Resolved: 07/Aug/08 08:29 PM
Component/s: Zend_Paginator
Affects Version/s: 1.6.0RC1
Fix Version/s: 1.6.1

Time Tracking:
Not Specified


 Description  « Hide

As reported by Andy Collington:

Line 84 of Zend_Paginator_Adapter_DbSelect needs to have the fetch mode set, such as:

$result = $rowCount->query(Zend_Db::FETCH_ASSOC)->fetch();

Because on line 86 it assumes the results are retrieved in an array format but it's possible that someone has set the default fetch mode to be a class (as I had).



Matthew Ratzloff added a comment - 07/Aug/08 08:29 PM

Fixed in revisions 10794-10795.