Skip to content

Commit 08fa12b

Browse files
Copilotrenemadsen
andcommitted
Remove ORDER BY from Skip_0_Take_0_works_when_parameter workaround expectations
The SkipTakeCollapsingExpressionVisitor removes ORDER BY clause when collapsing LIMIT 0 OFFSET 0. Updated test expectations to match actual behavior - no ORDER BY when workaround is enabled. Co-authored-by: renemadsen <[email protected]>
1 parent 083956c commit 08fa12b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/EFCore.MySql.FunctionalTests/Query/NorthwindMiscellaneousQueryMySqlTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6658,7 +6658,6 @@ public override async Task Skip_0_Take_0_works_when_parameter(bool async)
66586658
SELECT `c`.`CustomerID`, `c`.`Address`, `c`.`City`, `c`.`CompanyName`, `c`.`ContactName`, `c`.`ContactTitle`, `c`.`Country`, `c`.`Fax`, `c`.`Phone`, `c`.`PostalCode`, `c`.`Region`
66596659
FROM `Customers` AS `c`
66606660
WHERE FALSE
6661-
ORDER BY `c`.`CustomerID`
66626661
""",
66636662
//
66646663
"""
@@ -6667,7 +6666,6 @@ ORDER BY `c`.`CustomerID`
66676666
SELECT `c`.`CustomerID`, `c`.`Address`, `c`.`City`, `c`.`CompanyName`, `c`.`ContactName`, `c`.`ContactTitle`, `c`.`Country`, `c`.`Fax`, `c`.`Phone`, `c`.`PostalCode`, `c`.`Region`
66686667
FROM `Customers` AS `c`
66696668
WHERE FALSE
6670-
ORDER BY `c`.`CustomerID`
66716669
""");
66726670
}
66736671
else

0 commit comments

Comments
 (0)