Skip to content
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

Query: Fix for query fails with JSON columns and Include collection #28832

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

smitpatel
Copy link
Contributor

Resolves #28808

The entity instance is in resultContext.Values. We were trying to use it before creating resultContext.Values.
Fix is to materialize the includes for JSON after resultContext.Values has been created.

The collection include introduces the resultContext.

Resolves #28808

The entity instance is in resultContext.Values. We were trying to use it before creating resultContext.Values.
Fix is to materialize the includes for JSON after resultContext.Values has been created.

The collection include introduces the resultContext.
@smitpatel smitpatel requested a review from a team August 22, 2022 18:25
@smitpatel smitpatel changed the base branch from release/7.0 to release/7.0-rc1 August 22, 2022 18:25
navigation: (INavigation)includeExpression.Navigation);

var visitedShaperResult = Visit(shaperResult);

_expressions.Add(visitedShaperResult);
_includeExpressions.Add(visitedShaperResult);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one line code fix.

@ajcvickers ajcvickers merged commit 022df8f into release/7.0-rc1 Aug 22, 2022
@ajcvickers ajcvickers deleted the smit/abc branch August 22, 2022 23:20
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.

Query fails with JSON columns and Include collection
4 participants