import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -14,9 +14,9 @@
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Paginator
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: DbSelect.php 16161 2009-06-19 05:05:32Z norm2782 $
|
||||
* @version $Id: DbSelect.php 16293 2009-06-25 20:58:08Z norm2782 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ require_once 'Zend/Db/Select.php';
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Paginator
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Paginator_Adapter_DbSelect implements Zend_Paginator_Adapter_Interface
|
||||
@ -214,8 +214,7 @@ class Zend_Paginator_Adapter_DbSelect implements Zend_Paginator_Adapter_Interfac
|
||||
* the original query and use it as a subquery os the COUNT query.
|
||||
*/
|
||||
if (($isDistinct && count($columnParts) > 1) || count($groupParts) > 1 || !empty($havingParts)) {
|
||||
$rowCount->reset(Zend_Db_Select::FROM);
|
||||
$rowCount->from($this->_select);
|
||||
$rowCount = $db->select()->from($this->_select);
|
||||
} else if ($isDistinct) {
|
||||
$part = $columnParts[0];
|
||||
|
||||
|
Reference in New Issue
Block a user