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

[release/7.0] Fix to #30996 - Incorrect translation of comparison of current value with owned type default value #31742

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Sep 14, 2023

Port of #31714
Fixes #30996

Description

In optional dependent table sharing scenario, when comparing the dependent to null we first look for any required properties (at least one of them needs to be null), and if we don't have any required properties we look at optional ones (even though this is somewhat ambiguous). Error was that we did similar check as with required properties (i.e. at least one of them must be null, but what we should be doing is checking that all of them are null.

Customer impact

Incorrect results for queries on optional dependent entities being compared to null, when there are no required properties.

How found

Customer report on 7.0

Regression

Yes.

Testing

Added regression tests for affected scenarios.

Risk

Small: bug is isolated to this specific scenario (optional dependent entities with no required properties being compared to null). Fix returns the behavior to be identical to 6.0 - where it was working correctly. Also added quirk to revert to old behavior if necessary.

…with owned type default value

In optional dependent table sharing scenario, when comparing the dependent to null we first look for any required properties (at least one of them needs to be null), and if we don't have any required properties we look at optional ones (even though this is somewhat ambiguous). Error was that we did similar check as with required properties (i.e. at least one of them must be null, but what we should be doing is checking that all of them are null.

Fixes #30996
@maumar maumar requested review from ajcvickers and roji September 14, 2023 19:15
@maumar maumar changed the title Fix to #30996 - Incorrect translation of comparison of current value with owned type default value [release/7.0] Fix to #30996 - Incorrect translation of comparison of current value with owned type default value Sep 14, 2023
@maumar maumar added this to the 7.0.x milestone Sep 14, 2023
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.12 Sep 19, 2023
@ajcvickers ajcvickers modified the milestones: 7.0.12, 7.0.13 Oct 4, 2023
@wtgodbe wtgodbe merged commit 748bfee into release/7.0 Oct 4, 2023
@wtgodbe wtgodbe deleted the fix30996_70 branch October 4, 2023 16:13
@ajcvickers ajcvickers removed this from the 7.0.13 milestone Nov 14, 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.

5 participants