Skip to content

Commit 7145bd6

Browse files
committed
fix another failing test on postgres
1 parent 467b0f1 commit 7145bd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function _findTotalsOperation($state, $query, $results = array()) {
305305
$query['fields'] = array('author_id', 'Author.user');
306306
$this->virtualFields['total_posts'] = "COUNT({$this->alias}.id)";
307307
$query['fields'][] = 'total_posts';
308-
$query['group'] = array('author_id');
308+
$query['group'] = array('author_id', 'Author.user');
309309
$query['order'] = array('author_id' => 'ASC');
310310
return $query;
311311
}

0 commit comments

Comments
 (0)