Skip to content

Commit b365ff9

Browse files
Copilotrenemadsen
andcommitted
Fix Update_with_PK_pushdown_and_join_and_multiple_setters - replace WHERE with ORDER BY LIMIT
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 34e6d31 commit b365ff9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/EFCore.MySql.FunctionalTests/BulkUpdates/NorthwindBulkUpdatesMySqlTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,8 @@ INNER JOIN (
17761776
FROM (
17771777
SELECT `o`.`OrderID`, `o`.`ProductID`
17781778
FROM `Order Details` AS `o`
1779-
WHERE `o`.`OrderID` < @p
1779+
ORDER BY `o`.`OrderID`
1780+
LIMIT @p
17801781
) AS `o`
17811782
INNER JOIN `Order Details` AS `o1` ON `o`.`OrderID` = `o1`.`OrderID`
17821783
) AS `o0` ON `o2`.`OrderID` = `o0`.`OrderID` AND `o2`.`ProductID` = `o0`.`ProductID`

0 commit comments

Comments
 (0)