From: NHibernate J. <mik...@us...> - 2006-11-14 15:17:38
|
[ http://jira.nhibernate.org/browse/NH-808?page=comments#action_14398 ] Fabio Maulo commented on NH-808: -------------------------------- I don't understand.. protected class CountQueryFunctionInfo : StandardSQLFunction { public CountQueryFunctionInfo() : base("count") { } public override IType ReturnType(IType columnType, IMapping mapping) { return NHibernateUtil.Int64; } } It is Int64. There is a different implementation (porting from H3.2) if a dialect use ClassicCountFunction (return type is Int32) but, until now no dialect use it. Perhaps you mean count in projection criteria. I think is better if the expression ask the IType, of a specific function, to the dialect to don't have different behaviour between Query and Criteria. > Type of count(*) should be Int64 > -------------------------------- > > Key: NH-808 > URL: http://jira.nhibernate.org/browse/NH-808 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Sergey Koshcheyev > Priority: Trivial > Fix For: 1.2.0.CR1 > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |