Skip to content

Query: Enable test for complex case of null removal #22216

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
1 commit merged into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4620,7 +4620,7 @@ public virtual Task Include_multiple_collections_on_same_level(bool async)
assertOrder: true);
}

[ConditionalTheory(Skip = "Issue#17020")]
[ConditionalTheory]
[MemberData(nameof(IsAsyncData))]
public virtual Task Null_check_removal_applied_recursively(bool async)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,13 @@ public override async Task Null_check_removal_applied_recursively(bool async)
{
await base.Null_check_removal_applied_recursively(async);

AssertSql(" ");
AssertSql(
@"SELECT [l].[Id], [l].[Date], [l].[Name], [l].[OneToMany_Optional_Self_Inverse1Id], [l].[OneToMany_Required_Self_Inverse1Id], [l].[OneToOne_Optional_Self1Id]
FROM [LevelOne] AS [l]
LEFT JOIN [LevelTwo] AS [l0] ON [l].[Id] = [l0].[Level1_Optional_Id]
LEFT JOIN [LevelThree] AS [l1] ON [l0].[Id] = [l1].[Level2_Optional_Id]
LEFT JOIN [LevelFour] AS [l2] ON [l1].[Id] = [l2].[Level3_Optional_Id]
WHERE [l2].[Name] = N'L4 01'");
}

public override async Task Null_check_different_structure_does_not_remove_null_checks(bool async)
Expand Down