Skip to content

Commit

Permalink
Fix to #25954 - [EFCore 6.0] [Firebird] Problem with test NorthwindMi…
Browse files Browse the repository at this point in the history
…scellaneousQueryTestBase.Entity_equality_on_subquery_with_null_check

Adding the missing ordering so now the results should be always deterministic

Fixes #25954
  • Loading branch information
maumar committed Oct 7, 2021
1 parent 9921a2e commit b68f8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6301,7 +6301,7 @@ public virtual Task Entity_equality_on_subquery_with_null_check(bool async)
c.CustomerID,
Order = (c.Orders.Any() ? c.Orders.FirstOrDefault() : null) == null
? null
: new { c.Orders.FirstOrDefault().OrderDate }
: new { c.Orders.OrderBy(o => o.OrderID).FirstOrDefault().OrderDate }
}),
elementSorter: c => c.CustomerID,
elementAsserter: (e, a) => AssertEqual(e.Order, a.Order));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5205,7 +5205,8 @@ ELSE CAST(0 AS bit)
END, (
SELECT TOP(1) [o1].[OrderDate]
FROM [Orders] AS [o1]
WHERE [c].[CustomerID] = [o1].[CustomerID])
WHERE [c].[CustomerID] = [o1].[CustomerID]
ORDER BY [o1].[OrderID])
FROM [Customers] AS [c]");
}

Expand Down

0 comments on commit b68f8a9

Please sign in to comment.