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

[5.0.3] Add column name null checks in default FK and PK name calculation #23697

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

AndriySvyryd
Copy link
Member

Fixes #23672

Description

GetColumnNames(StoreObjectIdentifier) returns null for properties that are not mapped to the specifier store object. However GetDefaultName() didn't account for this.

Customer Impact

User models that use table splitting and have FKs to other table will result in an unhelpful ArgumentNullException. A workaround would be to specify the key and index store names explicitly, but this would be unfeasible for large models as the exception doesn't provide information on which are the offending ones.

How found

Customer reported on 5.0.1.

Test coverage

We have added more test coverage in this PR.

Regression?

Yes

Risk

Low. This just adds two null checks.

@ajcvickers ajcvickers added this to the 5.0.x milestone Dec 16, 2020
@leecow leecow modified the milestones: 5.0.x, 5.0.3 Dec 17, 2020
@ajcvickers ajcvickers merged commit 90d3f8e into release/5.0 Jan 13, 2021
@ajcvickers ajcvickers deleted the Issue23672 branch January 13, 2021 23:37
@ajcvickers ajcvickers removed this from the 5.0.3 milestone Jan 14, 2021
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.

4 participants