Skip to content

Commit c087537

Browse files
hazzikoskarb
authored andcommitted
Fix WhereSubqueryTests.CategoriesWithFirstProductIsNotDiscouned for configurations where linq database is generated.
1 parent 631e364 commit c087537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/Linq/WhereSubqueryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public void CategoriesWithFirstProductIsNotDiscouned()
568568
{
569569
//NH-3190
570570
var result = (from c in db.Categories
571-
where c.Products.Select(p => p.Discontinued).FirstOrDefault() == false
571+
where c.Products.OrderBy(p => p.ProductId).Select(p => p.Discontinued).FirstOrDefault() == false
572572
select c).ToList();
573573

574574
Assert.That(result.Count, Is.EqualTo(7));

0 commit comments

Comments
 (0)