|
From: NHibernate J. <mik...@us...> - 2007-01-04 10:07:35
|
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
|
|
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 |
|
From: NHibernate J. <mik...@us...> - 2007-01-04 10:43:35
|
[ http://jira.nhibernate.org/browse/NH-851?page=all ] Sergey Koshcheyev updated NH-851: --------------------------------- Fix Version: 1.2.0.Beta3 Version: 1.2.0.Beta2 > 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 > Versions: 1.2.0.Beta2 > Reporter: Ken Egozi > Priority: Trivial > Fix For: 1.2.0.Beta3 > 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 |
|
From: NHibernate J. <mik...@us...> - 2007-01-09 10:53:32
|
[ http://jira.nhibernate.org/browse/NH-851?page=all ] Sergey Koshcheyev closed NH-851: -------------------------------- Resolution: Fixed > 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 > Versions: 1.2.0.Beta2 > Reporter: Ken Egozi > Priority: Trivial > Fix For: 1.2.0.Beta3 > 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 |