From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-23 14:48:47
|
[ http://216.121.112.228/browse/NH-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21154#action_21154 ] Andrei Alecu commented on NH-2328: ---------------------------------- More information: Using an explicit parameter works: var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = :clazz") .SetParameter("clazz", typeof(Square).FullName).List<ToyBox>(); Upon further inspection, it works because the implementation calls NullSafeSet() on MetaType while setting the parameter. If the type is specified inline, NullSafeSet isn't called. I believe the proper fix here would be for the query parser to extract what's after = here and pass it in as a parameter, if possible, so that NullSafeSet() is called. > Linq query on <Any/> fails > -------------------------- > > Key: NH-2328 > URL: http://216.121.112.228/browse/NH-2328 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Michael Kobaly > Priority: Major > Attachments: NHibernate.Test.zip > > > Please read NHUsers group posting here for description of problem. > http://groups.google.com/group/nhusers/browse_thread/thread/fa831bd703842e1e > I excluded the lib folder from the zip file since upload says not to include dlls. I am using NH 3 Alpha 2 with all supporting dlls. First time posting bug..sorry in advance if I am doing it wrong. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |