Skip to content

Commit 7ecaf53

Browse files
Copilotrenemadsen
andcommitted
Fix Update_with_PK_pushdown_and_join_and_multiple_setters subquery structure for EF Core 10.0.2
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 74c0884 commit 7ecaf53

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,9 +1773,12 @@ public override async Task Update_with_PK_pushdown_and_join_and_multiple_setters
17731773
UPDATE `Order Details` AS `o2`
17741774
INNER JOIN (
17751775
SELECT `o1`.`OrderID`, `o1`.`ProductID`
1776-
FROM `Orders` AS `o`
1776+
FROM (
1777+
SELECT `o`.`OrderID`
1778+
FROM `Orders` AS `o`
1779+
WHERE `o`.`OrderID` < @p
1780+
) AS `o`
17771781
INNER JOIN `Order Details` AS `o1` ON `o`.`OrderID` = `o1`.`OrderID`
1778-
WHERE `o`.`OrderID` < @p
17791782
) AS `o0` ON `o2`.`OrderID` = `o0`.`OrderID` AND `o2`.`ProductID` = `o0`.`ProductID`
17801783
SET `o2`.`Quantity` = CAST(@p2 AS signed),
17811784
`o2`.`UnitPrice` = `o2`.`UnitPrice`

0 commit comments

Comments
 (0)