From: NHibernate J. <mik...@us...> - 2006-11-30 10:13:32
|
[ http://jira.nhibernate.org/browse/NH-825?page=all ] Ayende Rahien resolved NH-825: ------------------------------ Fix Version: 1.2.0.CR1 Resolution: Fixed Fixed and modified HashtableCache to show same behavior as other caches > QueryKey doesn't take into account the entity ID when generating ToString() > --------------------------------------------------------------------------- > > Key: NH-825 > URL: http://jira.nhibernate.org/browse/NH-825 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Ayende Rahien > Assignee: Ayende Rahien > Priority: Critical > Fix For: 1.2.0.CR1 > > The issue is that when a query in the following form is issued: > emp = (Employee.Id = 1} > from Salary s where s.Employee = emp; > And then stored in the cache, the key for it is something like: > select * from Salaries where s.Employee=?;named parameters={emp=Model.Employee} > Thus, not taking into account the entity id, and returning the wrong result back. -- 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 |