ZF-3804: Don't assume a fetch mode in the DbSelect adapter

Issue Type: Bug Created: 2008-07-29T14:59:16.000+0000 Last Updated: 2008-08-07T20:29:49.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Matthew Ratzloff (mratzloff) Assignee: Matthew Ratzloff (mratzloff) Tags: - Zend_Paginator

Related issues: Attachments:


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).


Posted by Matthew Ratzloff (mratzloff) on 2008-08-07T20:29:48.000+0000

Fixed in revisions 10794-10795.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.