From 5b62da3dfecede71c0fdbb471402eb94b98ea153 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 8 Aug 2024 00:16:27 +0200 Subject: [PATCH] Update baselines --- .../Query/ComplexNavigationsQuerySqlServer160Test.cs | 2 +- .../Query/ComplexNavigationsQuerySqlServerTest.cs | 2 +- ...plexNavigationsSharedTypeQuerySqlServer160Test.cs | 2 +- ...ComplexNavigationsSharedTypeQuerySqlServerTest.cs | 2 +- .../NorthwindMiscellaneousQuerySqlServerTest.cs | 12 ++++++------ .../NorthwindSetOperationsQuerySqlServerTest.cs | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServer160Test.cs b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServer160Test.cs index c9f9b88881b..608b49c23df 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServer160Test.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServer160Test.cs @@ -2068,7 +2068,7 @@ public override async Task Contains_with_subquery_optional_navigation_scalar_dis FROM [LevelOne] AS [l] LEFT JOIN [LevelTwo] AS [l0] ON [l].[Id] = [l0].[Level1_Optional_Id] WHERE 5 IN ( - SELECT DISTINCT CAST(LEN([l1].[Name]) AS int) + SELECT CAST(LEN([l1].[Name]) AS int) FROM [LevelThree] AS [l1] WHERE [l0].[Id] IS NOT NULL AND [l0].[Id] = [l1].[OneToMany_Optional_Inverse3Id] ) diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerTest.cs index e81cf662e67..a1ecbbafe29 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerTest.cs @@ -2068,7 +2068,7 @@ public override async Task Contains_with_subquery_optional_navigation_scalar_dis FROM [LevelOne] AS [l] LEFT JOIN [LevelTwo] AS [l0] ON [l].[Id] = [l0].[Level1_Optional_Id] WHERE 5 IN ( - SELECT DISTINCT CAST(LEN([l1].[Name]) AS int) + SELECT CAST(LEN([l1].[Name]) AS int) FROM [LevelThree] AS [l1] WHERE [l0].[Id] IS NOT NULL AND [l0].[Id] = [l1].[OneToMany_Optional_Inverse3Id] ) diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServer160Test.cs b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServer160Test.cs index d58c957f986..c985e4afa19 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServer160Test.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServer160Test.cs @@ -2117,7 +2117,7 @@ FROM [Level1] AS [l0] WHERE [l0].[OneToOne_Required_PK_Date] IS NOT NULL AND [l0].[Level1_Required_Id] IS NOT NULL AND [l0].[OneToMany_Required_Inverse2Id] IS NOT NULL ) AS [l1] ON [l].[Id] = [l1].[Level1_Optional_Id] WHERE 5 IN ( - SELECT DISTINCT CAST(LEN([l2].[Level3_Name]) AS int) + SELECT CAST(LEN([l2].[Level3_Name]) AS int) FROM [Level1] AS [l2] WHERE [l2].[Level2_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse3Id] IS NOT NULL AND CASE WHEN [l1].[OneToOne_Required_PK_Date] IS NOT NULL AND [l1].[Level1_Required_Id] IS NOT NULL AND [l1].[OneToMany_Required_Inverse2Id] IS NOT NULL THEN [l1].[Id] diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServerTest.cs index 8dea5c736e8..2fbb10dca51 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsSharedTypeQuerySqlServerTest.cs @@ -2119,7 +2119,7 @@ FROM [Level1] AS [l0] WHERE [l0].[OneToOne_Required_PK_Date] IS NOT NULL AND [l0].[Level1_Required_Id] IS NOT NULL AND [l0].[OneToMany_Required_Inverse2Id] IS NOT NULL ) AS [l1] ON [l].[Id] = [l1].[Level1_Optional_Id] WHERE 5 IN ( - SELECT DISTINCT CAST(LEN([l2].[Level3_Name]) AS int) + SELECT CAST(LEN([l2].[Level3_Name]) AS int) FROM [Level1] AS [l2] WHERE [l2].[Level2_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse3Id] IS NOT NULL AND CASE WHEN [l1].[OneToOne_Required_PK_Date] IS NOT NULL AND [l1].[Level1_Required_Id] IS NOT NULL AND [l1].[OneToMany_Required_Inverse2Id] IS NOT NULL THEN [l1].[Id] diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindMiscellaneousQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindMiscellaneousQuerySqlServerTest.cs index 3b0fe0f8ffd..8743cb7099c 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindMiscellaneousQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindMiscellaneousQuerySqlServerTest.cs @@ -1612,7 +1612,7 @@ public override async Task Any_on_distinct(bool async) SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] FROM [Customers] AS [c] WHERE EXISTS ( - SELECT DISTINCT 1 + SELECT 1 FROM [Orders] AS [o] WHERE [c].[CustomerID] = [o].[CustomerID] AND ([o].[EmployeeID] <> 1 OR [o].[EmployeeID] IS NULL)) """); @@ -1627,7 +1627,7 @@ public override async Task Contains_on_distinct(bool async) SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] FROM [Customers] AS [c] WHERE 1 IN ( - SELECT DISTINCT [o].[EmployeeID] + SELECT [o].[EmployeeID] FROM [Orders] AS [o] WHERE [c].[CustomerID] = [o].[CustomerID] ) @@ -1643,7 +1643,7 @@ public override async Task All_on_distinct(bool async) SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region] FROM [Customers] AS [c] WHERE NOT EXISTS ( - SELECT DISTINCT 1 + SELECT 1 FROM [Orders] AS [o] WHERE [c].[CustomerID] = [o].[CustomerID] AND [o].[EmployeeID] = 1) """); @@ -4107,7 +4107,7 @@ WHERE EXISTS ( SELECT 1 FROM [Customers] AS [c1] WHERE EXISTS ( - SELECT DISTINCT 1 + SELECT 1 FROM ( SELECT TOP(10) 1 AS empty FROM [Customers] AS [c2] @@ -7309,7 +7309,7 @@ FROM OPENJSON(@__ids_0) WITH ([value] int '$') AS [i0] public override async Task Contains_over_concatenated_columns_with_different_sizes(bool async) { - await base.Contains_over_concatenated_columns_with_different_sizes (async); + await base.Contains_over_concatenated_columns_with_different_sizes(async); AssertSql( """ @@ -7326,7 +7326,7 @@ FROM OPENJSON(@__data_0) WITH ([value] nvarchar(45) '$') AS [d] public override async Task Contains_over_concatenated_column_and_constant(bool async) { - await base.Contains_over_concatenated_column_and_constant (async); + await base.Contains_over_concatenated_column_and_constant(async); AssertSql( """ diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSetOperationsQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSetOperationsQuerySqlServerTest.cs index 492fee351f2..0077db190b6 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSetOperationsQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/NorthwindSetOperationsQuerySqlServerTest.cs @@ -1376,7 +1376,7 @@ public override async Task Intersect_on_distinct(bool async) AssertSql( """ -SELECT DISTINCT [c].[CompanyName] +SELECT [c].[CompanyName] FROM [Customers] AS [c] WHERE [c].[City] = N'México D.F.' INTERSECT @@ -1392,7 +1392,7 @@ public override async Task Union_on_distinct(bool async) AssertSql( """ -SELECT DISTINCT [c].[CompanyName] +SELECT [c].[CompanyName] FROM [Customers] AS [c] WHERE [c].[City] = N'México D.F.' UNION @@ -1408,7 +1408,7 @@ public override async Task Except_on_distinct(bool async) AssertSql( """ -SELECT DISTINCT [c].[CompanyName] +SELECT [c].[CompanyName] FROM [Customers] AS [c] WHERE [c].[City] = N'México D.F.' EXCEPT