From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-23 15:10:57
|
[ http://216.121.112.228/browse/NH-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21156#action_21156 ] Fabio Maulo commented on NH-2317: --------------------------------- As said above: "The matter here is that even in RAM the Take before the Select and the Take after the Select has two completely different meaning and overall behavior." The HQL equivalent of : session.Query<Artist>().Take(3).Select(a => a.Id) is: select a.id from Artist a where a.id in (from Artist take 3) and not select a.id from Artist a take 3 > Select after Take does not work properly > ---------------------------------------- > > Key: NH-2317 > URL: http://216.121.112.228/browse/NH-2317 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha2 > Reporter: Jose F. Romaniello > Priority: Major > Attachments: NH2317.7z > > > artists.Take(10).Select(a => a.Id) throws exception on > NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector.GetClassName(IASTNode querySource) en PolymorphicQuerySourceDetector.cs: line 62 > artists.Select(a => a.Id).Take(10) works properly > These two queries work with the old provider. -- 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 |