ZF-11765: A query with group by and sum() does not show any result
Description
I have a more or less complex query, with 4 joins, a sum and group aggregate function .. Anyway, while using the Zend_Paginator_Adapter, the query doesn't result anything .. i would say that Zend_Paginator_Adapter_DbSelect::getCountSelect is the souce of all evil :)
Comments
Posted by Frank Brückner (frosch) on 2011-09-23T07:39:11.000+0000
Please give an example to reproduce the problem.
Posted by Andreas Beder (nfo) on 2011-09-27T09:43:33.000+0000
Following query result one row (which is correct) , but as soon i use the Zend_Paginator, it doesn´t
Query
PHP Code
DB Create Table statement
Posted by Andreas Beder (nfo) on 2011-09-27T12:56:32.000+0000
some additional info, the automatic generated count query from Zend_Paginator_Adapter_DbSelect::getCountSelect returns 0
but in my case it should not count(distinct) the group by value from the original query....