Skip to content
Browse files

Zend\Db & Zend\Paginator

- Paginator: removed clearing of columns from select
- Db\Sql\Select: when resettings columns, reset value should be array(self::SQL_STAR)
  • Loading branch information...
1 parent c49d659 commit 570778c77eb7fbc6a9c806ef97c57a72121e000c @ralphschindler committed Jun 12, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −1 library/Zend/Db/Sql/Select.php
  2. +0 −1 library/Zend/Paginator/Adapter/DbSelect.php
View
2 library/Zend/Db/Sql/Select.php
@@ -478,7 +478,7 @@ public function reset($part)
$this->quantifier = null;
break;
case self::COLUMNS:
- $this->columns = array();
+ $this->columns = array(self::SQL_STAR);
break;
case self::JOINS:
$this->joins = array();
View
1 library/Zend/Paginator/Adapter/DbSelect.php
@@ -103,7 +103,6 @@ public function count()
}
$select = clone $this->select;
- $select->reset(Select::COLUMNS);
$select->reset(Select::LIMIT);
$select->reset(Select::OFFSET);
$select->reset(Select::ORDER);

0 comments on commit 570778c

Please sign in to comment.
Something went wrong with that request. Please try again.