From: NHibernate J. <mik...@us...> - 2006-11-28 19:34:32
|
[ http://jira.nhibernate.org/browse/NH-825?page=comments#action_14492 ] Sergey Koshcheyev commented on NH-825: -------------------------------------- Doesn't sound right - caching does not depend on ToString of the key only, as far as I know. Which cache provider are you testing this with? > 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 > > 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 |