|
From: NHibernate J. <mik...@us...> - 2007-01-04 10:14:33
|
[ http://jira.nhibernate.org/browse/NH-851?page=comments#action_14720 ] Ken Egozi commented on NH-851: ------------------------------ More info at can be found at http://www.kenegozi.com/blog/2007/01/04/NHibernateCouldNotFindConstructorForInSelectNewProjectionQuery.aspx > More descriptive error message for 'Cannot find constructor' on projections > --------------------------------------------------------------------------- > > Key: NH-851 > URL: http://jira.nhibernate.org/browse/NH-851 > Project: NHibernate > Type: Improvement > Components: Core > Reporter: Ken Egozi > Priority: Trivial > Attachments: DisplayParametersOnConstructorNotFound.patch > > Using .NET 2.0, over SQL Server 2005 > one of the latests changes (I guess) was that "select new Projection(... sum(s.Data)) ... " would assume "long" for the sum element, rather than int. > So if the projection has "int" in the constructor an exception will occur. > However, current users gets a non informative error message. > attached here a patch that would add the expected types for the contructor's parameters, so it would be easier to fix. > I was not able to build the solution due to some local problems with nant, so it should be tested. -- 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 |