Skip to content

Commit eaaaa40

Browse files
committed
Update baselines
1 parent 68e274c commit eaaaa40

5 files changed

+13
-23
lines changed

test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServer160Test.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ where l1.Id < 3
6969
SELECT (
7070
SELECT TOP(1) [l1].[Name]
7171
FROM (
72-
SELECT TOP(1) [l0].[Id], [l0].[Name]
72+
SELECT TOP(1) [l0].[Name]
7373
FROM [LevelThree] AS [l0]
74-
) AS [l1]
75-
ORDER BY [l1].[Id])
74+
) AS [l1])
7675
FROM [LevelOne] AS [l]
7776
WHERE [l].[Id] < 3
7877
""");

test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ where l1.Id < 3
6969
SELECT (
7070
SELECT TOP(1) [l1].[Name]
7171
FROM (
72-
SELECT TOP(1) [l0].[Id], [l0].[Name]
72+
SELECT TOP(1) [l0].[Name]
7373
FROM [LevelThree] AS [l0]
74-
) AS [l1]
75-
ORDER BY [l1].[Id])
74+
) AS [l1])
7675
FROM [LevelOne] AS [l]
7776
WHERE [l].[Id] < 3
7877
""");

test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServer160Test.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where l1.Id < 3
8787
SELECT (
8888
SELECT TOP(1) [s].[Level3_Name]
8989
FROM (
90-
SELECT TOP(1) [l4].[Id], [l4].[Level2_Required_Id], [l4].[Level3_Name], [l4].[OneToMany_Required_Inverse3Id]
90+
SELECT TOP(1) [l4].[Level3_Name]
9191
FROM [Level1] AS [l0]
9292
LEFT JOIN (
9393
SELECT [l1].[Id], [l1].[OneToOne_Required_PK_Date], [l1].[Level1_Required_Id], [l1].[OneToMany_Required_Inverse2Id]
@@ -106,10 +106,7 @@ WHEN [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id]
106106
WHEN [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [l4].[Id]
107107
END
108108
WHERE [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse2Id] IS NOT NULL AND [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL
109-
) AS [s]
110-
ORDER BY CASE
111-
WHEN [s].[Level2_Required_Id] IS NOT NULL AND [s].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [s].[Id]
112-
END)
109+
) AS [s])
113110
FROM [Level1] AS [l]
114111
WHERE [l].[Id] < 3
115112
""");

test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServerTest.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ where l1.Id < 3
8989
SELECT (
9090
SELECT TOP(1) [s].[Level3_Name]
9191
FROM (
92-
SELECT TOP(1) [l4].[Id], [l4].[Level2_Required_Id], [l4].[Level3_Name], [l4].[OneToMany_Required_Inverse3Id]
92+
SELECT TOP(1) [l4].[Level3_Name]
9393
FROM [Level1] AS [l0]
9494
LEFT JOIN (
9595
SELECT [l1].[Id], [l1].[OneToOne_Required_PK_Date], [l1].[Level1_Required_Id], [l1].[OneToMany_Required_Inverse2Id]
@@ -108,10 +108,7 @@ WHEN [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id]
108108
WHEN [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [l4].[Id]
109109
END
110110
WHERE [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse2Id] IS NOT NULL AND [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL
111-
) AS [s]
112-
ORDER BY CASE
113-
WHEN [s].[Level2_Required_Id] IS NOT NULL AND [s].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [s].[Id]
114-
END)
111+
) AS [s])
115112
FROM [Level1] AS [l]
116113
WHERE [l].[Id] < 3
117114
""");

test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSelectQuerySqlServerTest.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -776,16 +776,14 @@ public override async Task Project_single_element_from_collection_with_OrderBy_T
776776
"""
777777
SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate]
778778
FROM [Customers] AS [c]
779-
OUTER APPLY (
780-
SELECT TOP(1) [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate]
779+
LEFT JOIN (
780+
SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate]
781781
FROM (
782-
SELECT TOP(1) [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate]
782+
SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], ROW_NUMBER() OVER(PARTITION BY [o].[CustomerID] ORDER BY [o].[OrderID]) AS [row]
783783
FROM [Orders] AS [o]
784-
WHERE [c].[CustomerID] = [o].[CustomerID]
785-
ORDER BY [o].[OrderID]
786784
) AS [o0]
787-
ORDER BY [o0].[OrderDate]
788-
) AS [o1]
785+
WHERE [o0].[row] <= 1
786+
) AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]
789787
""");
790788
}
791789

0 commit comments

Comments
 (0)