Skip to content
This repository was archived by the owner on May 16, 2018. It is now read-only.
This repository was archived by the owner on May 16, 2018. It is now read-only.

Problem with Zend_Paginator and group by in query #750

Description

@silasrm

Hi guys,

Zend_Paginator has a serious error when using group by in query. He loses himself by counting the lines.
Simples solution: reset count after cloning query.

// Zend/Paginator/Adapter/DbSelect.php:207
$rowCount = clone $this->_select;
$rowCount->__toString(); // Workaround for ZF-3719 and related
$rowCount->reset(Zend_Db_Select::LIMIT_COUNT); // <--- this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions