Zend Framework

Don't assume a fetch mode in the DbSelect adapter

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.0RC1
  • Fix Version/s: 1.6.1
  • Component/s: Zend_Paginator
  • Labels:
    None

Description

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

Activity

Hide
Matthew Ratzloff added a comment -

Fixed in revisions 10794-10795.

Show
Matthew Ratzloff added a comment - Fixed in revisions 10794-10795.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: