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

Validate that if any fragments use table sharing then the main fragments are mapped to the same table #29285

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

AndriySvyryd
Copy link
Member

Fixes #29104

Customer Impact

When a split fragment is sharing the table with the main fragment of the principal type and the main fragment of the dependent type shares the table of a split fragment of the principal type then any attempt to insert a row will result in a circular dependency. This change adds model validation to fail early for this type of models.

Regression?

No. Entity splitting is a new feature.

Risk

Low. This change is constrained to model validation.

Verification

Added a test for the affected scenario.

@AndriySvyryd AndriySvyryd changed the title [release/7.0] Validate that if any fragments use table sharing then the main fragments are mapped to the same table Validate that if any fragments use table sharing then the main fragments are mapped to the same table Oct 6, 2022
@AndriySvyryd AndriySvyryd merged commit 206058e into release/7.0 Oct 6, 2022
@AndriySvyryd AndriySvyryd deleted the Issue29104 branch October 6, 2022 22:32
@ajcvickers ajcvickers removed this from the 7.0.0 milestone Jan 12, 2023
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