Skip to content

Commit

Permalink
Enabling and fixing test for #6618 - Query :: compilation error for q…
Browse files Browse the repository at this point in the history
…ueries projecting optional navigation, paging and another projecting of optional navigation

Issue has been already fixed in the earlier checkin, but the test was incorrect and would fail for InMemory regardless - fixing the test and enabling it.
  • Loading branch information
maumar committed May 17, 2017
1 parent 83f4a20 commit aba976c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1897,13 +1897,13 @@ public virtual void Order_by_key_of_anonymous_type_projected_navigation_doesnt_g
verifyOrdered: true);
}

[ConditionalFact(Skip = "Test does not pass.")] // TODO: See Issue#6618
[ConditionalFact]
public virtual void Optional_navigation_take_optional_navigation()
{
AssertQuery<Level1>(
l1s => l1s
.Select(l1 => l1.OneToOne_Optional_FK)
.OrderBy(l2 => l2.Id)
.OrderBy(l2 => (int?)l2.Id)
.Take(10)
.Select(l2 => l2.OneToOne_Optional_FK.Name),
l1s => l1s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,13 @@ public override void Optional_navigation_take_optional_navigation()
base.Optional_navigation_take_optional_navigation();

AssertSql(
@"");
@"@__p_0: 10
SELECT TOP(@__p_0) [l1.OneToOne_Optional_FK.OneToOne_Optional_FK].[Name]
FROM [Level1] AS [l1]
LEFT JOIN [Level2] AS [l1.OneToOne_Optional_FK] ON [l1].[Id] = [l1.OneToOne_Optional_FK].[Level1_Optional_Id]
LEFT JOIN [Level3] AS [l1.OneToOne_Optional_FK.OneToOne_Optional_FK] ON [l1.OneToOne_Optional_FK].[Id] = [l1.OneToOne_Optional_FK.OneToOne_Optional_FK].[Level2_Optional_Id]
ORDER BY [l1.OneToOne_Optional_FK].[Id]");
}

public override void Projection_select_correct_table_from_subquery_when_materialization_is_not_required()
Expand Down

0 comments on commit aba976c

Please sign in to comment.