the problem is when I try to use a scalar function into count function, and the strange case is when I use my own custom count function (example counter, with the same implementation of count), this one (my count function) works, but when I try to introduce a distinct keyword, this throws an exception on HqlParser.cs file
(method HqlParser.selectFrom_return selectFrom()).
Please, executes my methods in order to understand the problem.
Thanks a lot.
Hql parser on advanced Aggregate functions.