From: Roberto (JIRA) <nh...@gm...> - 2010-06-28 14:41:12
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19371#action_19371 ] Roberto commented on NH-2206: ----------------------------- Same error on different linq query public class Person { public virtual int Id { get; set; } public virtual String FirstName { get; set; } public virtual String LastName { get; set; } } public class Thing { public virtual int Id { get; set; } public virtual String Name { get; set; } public virtual Person Owner { get; set; } } IList<Thing> list = (from Thing item in session.Query<Thing>() select item).ToList<Thing>(); it give same CastResultOperator not supported even without a .cast<>() > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Critical > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-07-27 19:46:30
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19463#action_19463 ] Fabio Maulo commented on NH-2206: --------------------------------- Roberto, In your case you are using the same syntax used for a cast from Animal item in session.Query<Lizard>() select item you can change your query writing (from item in session.Query<Thing>() select item).ToList<Thing>(); Diego, I would know why in your opinion this issue is critical; I'm sure you are not talking about the query you send us because using session.Query<Animal>() you have all you need. > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Critical > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-07-27 19:46:34
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2206: ---------------------------- Priority: Major (was: Critical) > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-07-27 20:06:28
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19464#action_19464 ] Diego Mijelshon commented on NH-2206: ------------------------------------- Fabio, In the actual code, a method has to return a IQueryable<Animal>, but the source could be Lizard or any other Animal entity depending on internal logic. Querying Animal and filtering on the type is not possible in this case because it's using implicit polymorphism. I consider it critical because it breaks existing code (or, more precisely, forces us to keep the old Linq provider) > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Steve S. (JIRA) <nh...@gm...> - 2010-07-28 14:19:35
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19472#action_19472 ] Steve Strong commented on NH-2206: ---------------------------------- I agree it's an issue, but I don't think it qualifies as a priority of Major - the .ToList() does give a work around. The fact that compatibility with the old provider is broken isn't, in my opinion, a major issue. The old provider is an NHContrib project, not part of NH Core, and I don't think it's practical to ensure backwards-compatibility with it. We don't, for example, have a whole bunch of tests in the core for the old provider. So although I'd like to see this fixed, I think there are more important areas within the new provider that could be worked on instead. Feel free to submit a patch if it's a major problem for you ;) > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Diego M. (JIRA) <nh...@gm...> - 2010-07-28 15:30:34
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19473#action_19473 ] Diego Mijelshon commented on NH-2206: ------------------------------------- Steve, I'm OK with that and you can lower the priority. I'll try to create a patch for this. Keep in mind that, from an HQL perspective, (up)cast is a noop. > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-08-01 17:40:10
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19485#action_19485 ] Fabio Maulo commented on NH-2206: --------------------------------- Tests added to NHibernate.Test.Linq.WhereTests with the description: "Reported as bug NH-2206" The issue reported by Diego is easy to fix. The issue reported by Roberto needs something more. > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2010-09-22 20:26:57
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19863#action_19863 ] Fabio Maulo commented on NH-2206: --------------------------------- Fixed the issue reported by Diego. This ticket is maintained open to fix the issue reported by Roberto. > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-20 16:09:56
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo resolved NH-2206. ----------------------------- Resolution: Fixed Fix Version/s: 3.2.0CR1 > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Major > Fix For: 3.2.0CR1 > > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems 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 |