Skip to content

Commit

Permalink
Fix issue#12518 (#22257)
Browse files Browse the repository at this point in the history
Regression test already existed.
Added another variation for #22256

Close #12518
  • Loading branch information
smitpatel authored Aug 27, 2020
1 parent 8fff1f6 commit cd75030
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/EFCore.SqlServer.FunctionalTests/Query/QueryBugsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4586,6 +4586,22 @@ FROM [Parents] AS [p]
}
}

[ConditionalFact(Skip = "Issue #22256")]
public virtual void Projecting_column_with_value_converter_of_ulong_byte_array()
{
using (CreateDatabase12518())
{
using var context = new MyContext12518(_options);
var result = context.Parents.OrderBy(e => e.Id).Select(p => (ulong?)p.Child.ULongRowVersion).FirstOrDefault();

AssertSql(
@"SELECT TOP(1) [p].[Id], [p].[ChildId], [c].[Id], [c].[ParentId], [c].[ULongRowVersion]
FROM [Parents] AS [p]
LEFT JOIN [Children] AS [c] ON [p].[ChildId] = [c].[Id]
ORDER BY [p].[Id]");
}
}

private SqlServerTestStore CreateDatabase12518()
{
return CreateTestStore(
Expand Down

0 comments on commit cd75030

Please sign in to comment.