This is a very cool class, atleast in concept, but it has a serious problem when you need a group by clause.
I am doing a
result : 500Code:select product_id, sum(xxxxx) from product join table_with_many_product references group by product_id
not syntacticly correct, but you get the idea. The parser does a great job of building up a "count(*) version.
result 60,000Code:select count(*) from product join table_with_many_product references
so I am going to be updating this class tomorrow to allow more flexibility. I can think of a couple ways of doing this.
1. Let the caller specify the entire SQL for counting.
2. Allow the caller to specify a key field, or fields.
Or both.
in 2.
would work fine for me, but maybe not for everyone. Also since I'm opening this scary can of wormsCode:select count( distinct product_id) from product join table_with_many_product references, what external concerns should I be aware of, or is there anything else that should be done with this class while I am at it?
![]()
..... and to think all I wanted to do was create a report of products viewed... now I have ued the notification system, created a zen report class, 15 reports for it, and am about to change core code as well... who'd have known!
and earlier today I thought, just a little more testing and I can release it to the ZC community.


, what external concerns should I be aware of, or is there anything else that should be done with this class while I am at it?

