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

Stop skipping shadow skip navigation slots when creating the shadow values array #30902

Merged
merged 2 commits into from
May 16, 2023

Conversation

ajcvickers
Copy link
Member

Fixes #30764

We were previously not allocating a slot for shadow skip navigations when values come from query, since they are always null. This is fine for the common case where the navigation values are at the end of the array. However, for a shadow navigation in an abstract base class, the slot may be in the middle of the array, which then means all our indexes are off by one (or more). To fix this, we now create slots for the shadow navs, even though they will always contain null.

…alues array

Fixes #30764

We were previously not allocating a slot for shadow skip navigations when values come from query, since they are always null. This is fine for the common case where the navigation values are at the end of the array. However, for a shadow navigation in an abstract base class, the slot may be in the middle of the array, which then means all our indexes are off by one (or more). To fix this, we now create slots for the shadow navs, even though they will always contain null.
@ajcvickers ajcvickers requested a review from a team May 16, 2023 10:20
@ajcvickers ajcvickers merged commit ee74a60 into main May 16, 2023
@ajcvickers ajcvickers deleted the IndexOutside0510 branch May 16, 2023 18:59
wtgodbe pushed a commit that referenced this pull request Jun 7, 2023
…g the shadow values array (#30911)

* Stop skipping shadow skip navigation slots when creating the shadow values array (#30902)

* Add quirk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error "Index was outside the bounds of the array." when reading from dataset without AsNoTracking()
2 participants