Skip to content

Deep removal of Fetch result operators when Any is used #1559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 29, 2018

Conversation

gliljas
Copy link
Member

@gliljas gliljas commented Jan 26, 2018

This was already partially fixed in #140 , but failed when a Fetch was used in a subquery.

hazzik
hazzik previously approved these changes Jan 26, 2018
@hazzik hazzik added this to the 5.1 milestone Jan 26, 2018
@@ -36,10 +36,9 @@ public override void VisitResultOperator(ResultOperatorBase resultOperator, Quer
}
if (resultOperator is AnyResultOperator)
{
Array.ForEach(queryModel.ResultOperators.OfType<FetchOneRequest>().ToArray(), op => queryModel.ResultOperators.Remove(op));
Array.ForEach(queryModel.ResultOperators.OfType<FetchManyRequest>().ToArray(), op => queryModel.ResultOperators.Remove(op));
ResultOperatorRemover.Remove(queryModel, x=>x is FetchRequestBase);
Copy link
Member

@fredericDelaporte fredericDelaporte Jan 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lacking spaces around =>. This may cause unrelated changes later on when working again on that code.

@fredericDelaporte fredericDelaporte merged commit 24b4544 into nhibernate:master Jan 29, 2018
@hazzik
Copy link
Member

hazzik commented Jan 30, 2018

The tests wasn't regenerated

fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this pull request Jan 31, 2018
fredericDelaporte added a commit that referenced this pull request Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants