From f22eae02fa76c11eec4fa02e67047b3a0b5a31bd Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 19:39:27 +0000 Subject: [PATCH 01/37] [Windows / SQLite (both providers)] baselines --- ...ncatUnionTests.Concat502(SQLite.Classic.LinqService).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SQLite.Classic).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SQLite.Classic).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SQLite.Classic).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SQLite.Classic).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SQLite.Classic).sql | 6 +++--- ...nditionalTests.ViaConditionWithNull1(SQLite.Classic).sql | 6 +++--- ...nditionalTests.ViaConditionWithNull2(SQLite.Classic).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SQLite.Classic).sql | 6 +++--- ...3371Tests.NullReferenceExceptionTest(SQLite.Classic).sql | 6 +++--- ...nq.ConcatUnionTests.Concat502(SQLite.MS.LinqService).sql | 6 +++--- ...leTestsAsync.FirstOrDefaultPredicateAsync(SQLite.MS).sql | 4 +--- ...inq.CompileTestsAsync.FirstPredicateAsync(SQLite.MS).sql | 4 +--- ...eTestsAsync.SingleOrDefaultPredicateAsync(SQLite.MS).sql | 4 +--- ...nq.CompileTestsAsync.SinglePredicateAsync(SQLite.MS).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS).sql | 6 +++--- ...ts.Linq.ConditionalTests.ViaConditionDeep(SQLite.MS).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionWithNull1(SQLite.MS).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionWithNull2(SQLite.MS).sql | 6 +++--- ...rTests.Issue3259Tests.SubqueryAggregation(SQLite.MS).sql | 6 +++--- ...Issue3371Tests.NullReferenceExceptionTest(SQLite.MS).sql | 6 +++--- 22 files changed, 50 insertions(+), 66 deletions(-) diff --git a/SQLite.Classic.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.LinqService).sql b/SQLite.Classic.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.LinqService).sql index d8a1bd01f2b..48f237e446a 100644 --- a/SQLite.Classic.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.LinqService).sql +++ b/SQLite.Classic.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic).sql index 33f34bba4ff..bd3acc05322 100644 --- a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic).sql index 33f34bba4ff..bd3acc05322 100644 --- a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic).sql index 7b8dcb98cd6..8868f9c1fc4 100644 --- a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic).sql index 7b8dcb98cd6..8868f9c1fc4 100644 --- a/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic).sql index d8a1bd01f2b..48f237e446a 100644 --- a/SQLite.Classic/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic).sql index 044bda4bc7a..5dc231165e8 100644 --- a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @IntProp -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE ELSE [x].[StringProp] || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 diff --git a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic).sql index b7c5c1ae454..0d40c71d0fb 100644 --- a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -46,7 +46,7 @@ FROM [ConditionalData] [x] WHERE CASE - WHEN [x].[StringProp] = '1' THEN @p + WHEN [x].[StringProp] = '1' THEN @StringProp ELSE [x].[StringProp] END LIKE '%2%' ESCAPE '~' diff --git a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic).sql b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic).sql index a90cb944e76..e1603d70fa3 100644 --- a/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -47,7 +47,7 @@ FROM WHERE CASE WHEN [x].[StringProp] = '1' THEN [x].[StringProp] - ELSE @p + ELSE @StringProp END LIKE '%2%' ESCAPE '~' BeforeExecute diff --git a/SQLite.Classic/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic).sql b/SQLite.Classic/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic).sql index bab9d07ee21..64e570ba439 100644 --- a/SQLite.Classic/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic).sql @@ -122,7 +122,7 @@ BeforeExecute -- SQLite.Classic SQLite SELECT - [t5].[SUM_1], + [t5].[WithParentReference], [t5].[WithParentReferenceCustom1], [t5].[WithParentReferenceCustom2], [t5].[WithoutParentReference] @@ -153,7 +153,7 @@ FROM WHERE [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t5] ORDER BY - Coalesce([t5].[SUM_1], 0), + Coalesce([t5].[WithParentReference], 0), Coalesce([t5].[WithParentReferenceCustom1], 0), Coalesce([t5].[WithParentReferenceCustom2], 0), Coalesce([t5].[WithoutParentReference], 0) DESC diff --git a/SQLite.Classic/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic).sql b/SQLite.Classic/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic).sql index 7b45b949fc1..5c5f6c23178 100644 --- a/SQLite.Classic/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic).sql +++ b/SQLite.Classic/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic).sql @@ -67,8 +67,8 @@ WHERE BeforeExecute -- SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @Name NVarChar -- String +SET @Name = NULL SELECT [item_1].[Id], @@ -79,7 +79,7 @@ FROM LEFT JOIN [PayRate] [a_PayRate] ON [item_1].[PayRateId] = [a_PayRate].[Id] WHERE CASE - WHEN [item_1].[PayRateId] IS NULL THEN @p + WHEN [item_1].[PayRateId] IS NULL THEN @Name ELSE [a_PayRate].[Name] END = 'test' diff --git a/SQLite.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS.LinqService).sql b/SQLite.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS.LinqService).sql index 946ede5f562..a535e40423f 100644 --- a/SQLite.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS.LinqService).sql +++ b/SQLite.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.MS SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.MS).sql b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.MS).sql index 8ef2e4fa3cf..d050af7c8c1 100644 --- a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.MS).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.MS SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.MS).sql b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.MS).sql index 8ef2e4fa3cf..d050af7c8c1 100644 --- a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.MS).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.MS SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.MS).sql b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.MS).sql index 869ad70b185..77cbe357fba 100644 --- a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.MS).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.MS SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.MS).sql b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.MS).sql index 869ad70b185..77cbe357fba 100644 --- a/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.MS).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.MS SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS).sql b/SQLite.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS).sql index 946ede5f562..a535e40423f 100644 --- a/SQLite.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.MS SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.MS).sql b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.MS).sql index 67fbd6f41dd..490250a4a0e 100644 --- a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.MS).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.MS SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @IntProp -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE ELSE [x].[StringProp] || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 diff --git a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.MS).sql b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.MS).sql index eb3a4a52a72..2ebbc9b0215 100644 --- a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.MS).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.MS SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -46,7 +46,7 @@ FROM [ConditionalData] [x] WHERE CASE - WHEN [x].[StringProp] = '1' THEN @p + WHEN [x].[StringProp] = '1' THEN @StringProp ELSE [x].[StringProp] END LIKE '%2%' ESCAPE '~' diff --git a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.MS).sql b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.MS).sql index 529027ec529..7c6e58060d0 100644 --- a/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.MS).sql +++ b/SQLite.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.MS).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.MS SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -47,7 +47,7 @@ FROM WHERE CASE WHEN [x].[StringProp] = '1' THEN [x].[StringProp] - ELSE @p + ELSE @StringProp END LIKE '%2%' ESCAPE '~' BeforeExecute diff --git a/SQLite.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.MS).sql b/SQLite.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.MS).sql index 9c2b8da2a77..1f66cf1c4f0 100644 --- a/SQLite.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.MS).sql +++ b/SQLite.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.MS).sql @@ -122,7 +122,7 @@ BeforeExecute -- SQLite.MS SQLite SELECT - [t5].[SUM_1], + [t5].[WithParentReference], [t5].[WithParentReferenceCustom1], [t5].[WithParentReferenceCustom2], [t5].[WithoutParentReference] @@ -153,7 +153,7 @@ FROM WHERE [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t5] ORDER BY - Coalesce([t5].[SUM_1], 0), + Coalesce([t5].[WithParentReference], 0), Coalesce([t5].[WithParentReferenceCustom1], 0), Coalesce([t5].[WithParentReferenceCustom2], 0), Coalesce([t5].[WithoutParentReference], 0) DESC diff --git a/SQLite.MS/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.MS).sql b/SQLite.MS/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.MS).sql index cd5b6d99dd7..1a7e6102213 100644 --- a/SQLite.MS/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.MS).sql +++ b/SQLite.MS/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.MS).sql @@ -67,8 +67,8 @@ WHERE BeforeExecute -- SQLite.MS SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @Name NVarChar -- String +SET @Name = NULL SELECT [item_1].[Id], @@ -79,7 +79,7 @@ FROM LEFT JOIN [PayRate] [a_PayRate] ON [item_1].[PayRateId] = [a_PayRate].[Id] WHERE CASE - WHEN [item_1].[PayRateId] IS NULL THEN @p + WHEN [item_1].[PayRateId] IS NULL THEN @Name ELSE [a_PayRate].[Name] END = 'test' From 40008d4fb0d6c29eac055f610aea27a64e7c4d4d Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 19:46:57 +0000 Subject: [PATCH 02/37] [Windows / SQL CE] baselines --- ...s.Linq.ConcatUnionTests.Concat502(SqlCe.LinqService).sql | 6 +++--- .../Tests.Linq.CountTests.GroupJoin4(SqlCe.LinqService).sql | 2 +- .../Tests.Linq.GroupByTests.GroupBy2(SqlCe.LinqService).sql | 2 +- ....Linq.SelectTests.MultipleSelect8(SqlCe.LinqService).sql | 2 +- .../Tests.Linq.TypesTests.Nullable(SqlCe.LinqService).sql | 2 +- ...ests.Linq.WhereTests.MakeSubQuery(SqlCe.LinqService).sql | 2 +- ....WhereTests.MakeSubQueryWithParam(SqlCe.LinqService).sql | 2 +- ...ompileTestsAsync.FirstOrDefaultPredicateAsync(SqlCe).sql | 4 +--- ...ts.Linq.CompileTestsAsync.FirstPredicateAsync(SqlCe).sql | 4 +--- ...mpileTestsAsync.SingleOrDefaultPredicateAsync(SqlCe).sql | 4 +--- ...s.Linq.CompileTestsAsync.SinglePredicateAsync(SqlCe).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(SqlCe).sql | 6 +++--- .../Tests.Linq.ConditionalTests.ViaConditionDeep(SqlCe).sql | 6 +++--- .../CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe).sql | 2 +- .../Tests.Linq.GroupByTests.GroupBy2(SqlCe).sql | 2 +- .../Tests.Linq.SelectTests.MultipleSelect8(SqlCe).sql | 2 +- .../TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe).sql | 2 +- .../Tests.Linq.WhereTests.MakeSubQuery(SqlCe).sql | 2 +- .../Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe).sql | 2 +- 19 files changed, 25 insertions(+), 33 deletions(-) diff --git a/SqlCe.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe.LinqService).sql index e028b2a2ce4..26c6e4170b9 100644 --- a/SqlCe.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlCe -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlCe.LinqService/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe.LinqService).sql index e62520168d5..c2031dc7f8f 100644 --- a/SqlCe.LinqService/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe.LinqService).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - [t1].[COUNT_1] + [t1].[COUNT_1] as [Count1] + [t1].[COUNT_1] + [t1].[COUNT_1] as [c1] FROM [Parent] [t2] OUTER APPLY ( diff --git a/SqlCe.LinqService/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe.LinqService).sql index 6029f8b752c..667b1fc0a98 100644 --- a/SqlCe.LinqService/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe.LinqService).sql @@ -3,7 +3,7 @@ SELECT [gr_1].[ID], - [gr_1].[ID] + 1 as [ID1] + [gr_1].[ID] + 1 as [c1] FROM ( SELECT diff --git a/SqlCe.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe.LinqService).sql index e00e8dac413..123cca1ea7c 100644 --- a/SqlCe.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe.LinqService).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - ([p2].[PersonID] * 2) / 2 as [ID], + ([p2].[PersonID] * 2) / 2 as [c1], [p2].[FirstName] FROM [Person] [p2] diff --git a/SqlCe.LinqService/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe.LinqService).sql index 25ed1dc499f..1940426a86c 100644 --- a/SqlCe.LinqService/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe.LinqService).sql @@ -5,7 +5,7 @@ SELECT CASE WHEN [p].[Value1] IS NOT NULL THEN [p].[Value1] ELSE 0 - END as [Value_1] + END as [c1] FROM [Parent] [p] diff --git a/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe.LinqService).sql index ca80ce6755c..753978e2f8d 100644 --- a/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe.LinqService).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - [p].[PersonID] as [ID], + [p].[PersonID], [p].[FirstName] FROM [Person] [p] diff --git a/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe.LinqService).sql b/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe.LinqService).sql index e841db9da20..2df66d242b3 100644 --- a/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe.LinqService).sql +++ b/SqlCe.LinqService/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe.LinqService).sql @@ -4,7 +4,7 @@ DECLARE @n Int -- Int32 SET @n = 1 SELECT - ([p].[PersonID] + @n) - 1 as [ID], + ([p].[PersonID] + @n) - 1 as [c1], [p].[FirstName] FROM [Person] [p] diff --git a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlCe).sql b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlCe).sql index 7815822cece..dca8cb08e8b 100644 --- a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlCe).sql +++ b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlCe).sql @@ -35,8 +35,6 @@ BeforeExecute -- SqlCe (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id as [Id], @@ -44,7 +42,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlCe diff --git a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlCe).sql b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlCe).sql index 7815822cece..dca8cb08e8b 100644 --- a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlCe).sql +++ b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlCe).sql @@ -35,8 +35,6 @@ BeforeExecute -- SqlCe (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id as [Id], @@ -44,7 +42,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlCe diff --git a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlCe).sql b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlCe).sql index 2ff07cbe3f5..31588f17ca0 100644 --- a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlCe).sql +++ b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlCe).sql @@ -35,8 +35,6 @@ BeforeExecute -- SqlCe (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id as [Id], @@ -44,7 +42,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlCe diff --git a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlCe).sql b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlCe).sql index 2ff07cbe3f5..31588f17ca0 100644 --- a/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlCe).sql +++ b/SqlCe/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlCe).sql @@ -35,8 +35,6 @@ BeforeExecute -- SqlCe (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id as [Id], @@ -44,7 +42,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlCe diff --git a/SqlCe/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe).sql b/SqlCe/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe).sql index e028b2a2ce4..26c6e4170b9 100644 --- a/SqlCe/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe).sql +++ b/SqlCe/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlCe).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlCe -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlCe/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlCe).sql b/SqlCe/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlCe).sql index 2aa3a763c2e..1b4b96a7105 100644 --- a/SqlCe/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlCe).sql +++ b/SqlCe/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlCe).sql @@ -35,8 +35,8 @@ SELECT 10,'String10' BeforeExecute -- SqlCe -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -55,7 +55,7 @@ WHERE ELSE [x].[StringProp] + '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 diff --git a/SqlCe/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe).sql b/SqlCe/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe).sql index e62520168d5..c2031dc7f8f 100644 --- a/SqlCe/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe).sql +++ b/SqlCe/Tests/Linq/CountTests/Tests.Linq.CountTests.GroupJoin4(SqlCe).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - [t1].[COUNT_1] + [t1].[COUNT_1] as [Count1] + [t1].[COUNT_1] + [t1].[COUNT_1] as [c1] FROM [Parent] [t2] OUTER APPLY ( diff --git a/SqlCe/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe).sql b/SqlCe/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe).sql index 6029f8b752c..667b1fc0a98 100644 --- a/SqlCe/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe).sql +++ b/SqlCe/Tests/Linq/GroupByTests/Tests.Linq.GroupByTests.GroupBy2(SqlCe).sql @@ -3,7 +3,7 @@ SELECT [gr_1].[ID], - [gr_1].[ID] + 1 as [ID1] + [gr_1].[ID] + 1 as [c1] FROM ( SELECT diff --git a/SqlCe/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe).sql b/SqlCe/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe).sql index e00e8dac413..123cca1ea7c 100644 --- a/SqlCe/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe).sql +++ b/SqlCe/Tests/Linq/SelectTests/Tests.Linq.SelectTests.MultipleSelect8(SqlCe).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - ([p2].[PersonID] * 2) / 2 as [ID], + ([p2].[PersonID] * 2) / 2 as [c1], [p2].[FirstName] FROM [Person] [p2] diff --git a/SqlCe/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe).sql b/SqlCe/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe).sql index 25ed1dc499f..1940426a86c 100644 --- a/SqlCe/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe).sql +++ b/SqlCe/Tests/Linq/TypesTests/Tests.Linq.TypesTests.Nullable(SqlCe).sql @@ -5,7 +5,7 @@ SELECT CASE WHEN [p].[Value1] IS NOT NULL THEN [p].[Value1] ELSE 0 - END as [Value_1] + END as [c1] FROM [Parent] [p] diff --git a/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe).sql b/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe).sql index ca80ce6755c..753978e2f8d 100644 --- a/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe).sql +++ b/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQuery(SqlCe).sql @@ -2,7 +2,7 @@ -- SqlCe SELECT - [p].[PersonID] as [ID], + [p].[PersonID], [p].[FirstName] FROM [Person] [p] diff --git a/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe).sql b/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe).sql index e841db9da20..2df66d242b3 100644 --- a/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe).sql +++ b/SqlCe/Tests/Linq/WhereTests/Tests.Linq.WhereTests.MakeSubQueryWithParam(SqlCe).sql @@ -4,7 +4,7 @@ DECLARE @n Int -- Int32 SET @n = 1 SELECT - ([p].[PersonID] + @n) - 1 as [ID], + ([p].[PersonID] + @n) - 1 as [c1], [p].[FirstName] FROM [Person] [p] From d6eddb890e906028b7b953d58d1b26494f9f51cf Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 19:54:56 +0000 Subject: [PATCH 03/37] [Windows / Access MDB (Jet/ODBC)] baselines --- ....Linq.ConcatUnionTests.Concat502(Access.LinqService).sql | 6 +++--- ....ConcatUnionTests.Concat502(Access.Odbc.LinqService).sql | 4 ++-- ...TestsAsync.FirstOrDefaultPredicateAsync(Access.Odbc).sql | 2 +- ...q.CompileTestsAsync.FirstPredicateAsync(Access.Odbc).sql | 2 +- ...estsAsync.SingleOrDefaultPredicateAsync(Access.Odbc).sql | 2 +- ....CompileTestsAsync.SinglePredicateAsync(Access.Odbc).sql | 2 +- .../Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc).sql | 4 ++-- ....Linq.ConditionalTests.ViaConditionDeep(Access.Odbc).sql | 4 ++-- ...mpileTestsAsync.FirstOrDefaultPredicateAsync(Access).sql | 2 +- ...s.Linq.CompileTestsAsync.FirstPredicateAsync(Access).sql | 2 +- ...pileTestsAsync.SingleOrDefaultPredicateAsync(Access).sql | 2 +- ....Linq.CompileTestsAsync.SinglePredicateAsync(Access).sql | 2 +- .../Tests.Linq.ConcatUnionTests.Concat502(Access).sql | 6 +++--- ...Tests.Linq.ConditionalTests.ViaConditionDeep(Access).sql | 6 +++--- 14 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Access.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.LinqService).sql b/Access.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.LinqService).sql index 010e402552c..58a63fd5aeb 100644 --- a/Access.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.LinqService).sql +++ b/Access.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Access AccessOleDb -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], CVar(@p)) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], CVar(@Value1)) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/Access.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc.LinqService).sql b/Access.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc.LinqService).sql index 3c4d25c4422..a8bf2ee991e 100644 --- a/Access.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc.LinqService).sql +++ b/Access.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Access.Odbc AccessODBC -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], diff --git a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access.Odbc).sql b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access.Odbc).sql index c2d1699be17..b5ad50ebe25 100644 --- a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access.Odbc).sql @@ -166,7 +166,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = ? + [c_1].[Id] = CVar(?) BeforeExecute -- Access.Odbc AccessODBC diff --git a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access.Odbc).sql b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access.Odbc).sql index c2d1699be17..b5ad50ebe25 100644 --- a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access.Odbc).sql @@ -166,7 +166,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = ? + [c_1].[Id] = CVar(?) BeforeExecute -- Access.Odbc AccessODBC diff --git a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access.Odbc).sql b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access.Odbc).sql index 9584520780e..e7cc1963396 100644 --- a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access.Odbc).sql @@ -166,7 +166,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = ? + [c_1].[Id] = CVar(?) BeforeExecute -- Access.Odbc AccessODBC diff --git a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access.Odbc).sql b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access.Odbc).sql index 9584520780e..e7cc1963396 100644 --- a/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access.Odbc).sql @@ -166,7 +166,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = ? + [c_1].[Id] = CVar(?) BeforeExecute -- Access.Odbc AccessODBC diff --git a/Access.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc).sql b/Access.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc).sql index 3c4d25c4422..a8bf2ee991e 100644 --- a/Access.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access.Odbc).sql @@ -1,7 +1,7 @@ BeforeExecute -- Access.Odbc AccessODBC -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], diff --git a/Access.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access.Odbc).sql b/Access.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access.Odbc).sql index 573e4c12cb6..6a25938c026 100644 --- a/Access.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access.Odbc).sql +++ b/Access.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access.Odbc).sql @@ -196,8 +196,8 @@ VALUES BeforeExecute -- Access.Odbc AccessODBC -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], diff --git a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access).sql b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access).sql index 2ed8e17cb13..ea3f47631ef 100644 --- a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access).sql +++ b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Access).sql @@ -166,7 +166,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = CVar(@Id_1) BeforeExecute -- Access AccessOleDb diff --git a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access).sql b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access).sql index 2ed8e17cb13..ea3f47631ef 100644 --- a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access).sql +++ b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Access).sql @@ -166,7 +166,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = CVar(@Id_1) BeforeExecute -- Access AccessOleDb diff --git a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access).sql b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access).sql index b6ba30440ae..63a99f533fe 100644 --- a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access).sql +++ b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Access).sql @@ -166,7 +166,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = CVar(@Id_1) BeforeExecute -- Access AccessOleDb diff --git a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access).sql b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access).sql index b6ba30440ae..63a99f533fe 100644 --- a/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access).sql +++ b/Access/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Access).sql @@ -166,7 +166,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = CVar(@Id_1) BeforeExecute -- Access AccessOleDb diff --git a/Access/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access).sql b/Access/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access).sql index 010e402552c..58a63fd5aeb 100644 --- a/Access/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access).sql +++ b/Access/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Access).sql @@ -1,7 +1,7 @@ BeforeExecute -- Access AccessOleDb -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], CVar(@p)) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], CVar(@Value1)) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/Access/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access).sql b/Access/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access).sql index 8b74f9fb668..c04d5a76749 100644 --- a/Access/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access).sql +++ b/Access/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Access).sql @@ -196,8 +196,8 @@ VALUES BeforeExecute -- Access AccessOleDb -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -208,7 +208,7 @@ FROM [ConditionalData] [x] WHERE IIF([x].[StringProp] = '1' OR [x].[StringProp] IS NULL, '2', IIF([x].[StringProp] = '2', [x].[StringProp], [x].[StringProp] + '2')) LIKE '%2' AND - IIF([x].[StringProp] = '1' OR [x].[StringProp] IS NULL, @p, IIF([x].[StringProp] = '2', 1, 2)) = 2 + IIF([x].[StringProp] = '1' OR [x].[StringProp] IS NULL, @IntProp, IIF([x].[StringProp] = '2', 1, 2)) = 2 BeforeExecute -- Access AccessOleDb From 9e83a7ae6382aa5d20104e0ab560a400e7edd990 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 19:56:56 +0000 Subject: [PATCH 04/37] [Windows / SQLite (specialized tests)] baselines --- ...UnionTests.Concat502(SQLite.Classic.MPM.LinqService).sql | 6 +++--- ...ync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPM).sql | 4 +--- ...leTestsAsync.FirstPredicateAsync(SQLite.Classic.MPM).sql | 4 +--- ...nc.SingleOrDefaultPredicateAsync(SQLite.Classic.MPM).sql | 4 +--- ...eTestsAsync.SinglePredicateAsync(SQLite.Classic.MPM).sql | 4 +--- ....Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM).sql | 6 +++--- ...onditionalTests.ViaConditionDeep(SQLite.Classic.MPM).sql | 6 +++--- ...ionalTests.ViaConditionWithNull1(SQLite.Classic.MPM).sql | 6 +++--- ...ionalTests.ViaConditionWithNull2(SQLite.Classic.MPM).sql | 6 +++--- ...sue3259Tests.SubqueryAggregation(SQLite.Classic.MPM).sql | 6 +++--- ...Tests.NullReferenceExceptionTest(SQLite.Classic.MPM).sql | 6 +++--- ...UnionTests.Concat502(SQLite.Classic.MPU.LinqService).sql | 6 +++--- ...ync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPU).sql | 4 +--- ...leTestsAsync.FirstPredicateAsync(SQLite.Classic.MPU).sql | 4 +--- ...nc.SingleOrDefaultPredicateAsync(SQLite.Classic.MPU).sql | 4 +--- ...eTestsAsync.SinglePredicateAsync(SQLite.Classic.MPU).sql | 4 +--- ....Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU).sql | 6 +++--- ...onditionalTests.ViaConditionDeep(SQLite.Classic.MPU).sql | 6 +++--- ...ionalTests.ViaConditionWithNull1(SQLite.Classic.MPU).sql | 6 +++--- ...ionalTests.ViaConditionWithNull2(SQLite.Classic.MPU).sql | 6 +++--- ...sue3259Tests.SubqueryAggregation(SQLite.Classic.MPU).sql | 6 +++--- ...Tests.NullReferenceExceptionTest(SQLite.Classic.MPU).sql | 6 +++--- 22 files changed, 50 insertions(+), 66 deletions(-) diff --git a/SQLite.Classic.MPM.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM.LinqService).sql b/SQLite.Classic.MPM.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM.LinqService).sql index bbef614bce0..49ac22e0a74 100644 --- a/SQLite.Classic.MPM.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM.LinqService).sql +++ b/SQLite.Classic.MPM.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPM).sql index 96a764626cf..a5efe004113 100644 --- a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPM).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPM).sql index 96a764626cf..a5efe004113 100644 --- a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPM).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPM).sql index 19efe8b28af..9cbe6a5fa47 100644 --- a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPM).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPM).sql index 19efe8b28af..9cbe6a5fa47 100644 --- a/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPM).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic.MPM/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM).sql index bbef614bce0..49ac22e0a74 100644 --- a/SQLite.Classic.MPM/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPM).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPM).sql index 569a62aae13..88f0ae8fe44 100644 --- a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPM).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @IntProp -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE ELSE [x].[StringProp] || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 diff --git a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPM).sql index 1dd58dd53bb..90bd0c59ba4 100644 --- a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPM).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -46,7 +46,7 @@ FROM [ConditionalData] [x] WHERE CASE - WHEN [x].[StringProp] = '1' THEN @p + WHEN [x].[StringProp] = '1' THEN @StringProp ELSE [x].[StringProp] END LIKE '%2%' ESCAPE '~' diff --git a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPM).sql index 3c3ab72022e..70356918900 100644 --- a/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPM).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -47,7 +47,7 @@ FROM WHERE CASE WHEN [x].[StringProp] = '1' THEN [x].[StringProp] - ELSE @p + ELSE @StringProp END LIKE '%2%' ESCAPE '~' BeforeExecute diff --git a/SQLite.Classic.MPM/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPM).sql index 5a83c0b5446..ef21ed5acc3 100644 --- a/SQLite.Classic.MPM/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPM).sql @@ -122,7 +122,7 @@ BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite SELECT - [t5].[SUM_1], + [t5].[WithParentReference], [t5].[WithParentReferenceCustom1], [t5].[WithParentReferenceCustom2], [t5].[WithoutParentReference] @@ -153,7 +153,7 @@ FROM WHERE [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t5] ORDER BY - Coalesce([t5].[SUM_1], 0), + Coalesce([t5].[WithParentReference], 0), Coalesce([t5].[WithParentReferenceCustom1], 0), Coalesce([t5].[WithParentReferenceCustom2], 0), Coalesce([t5].[WithoutParentReference], 0) DESC diff --git a/SQLite.Classic.MPM/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPM).sql b/SQLite.Classic.MPM/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPM).sql index 6cab96d78af..7e197af854f 100644 --- a/SQLite.Classic.MPM/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPM).sql +++ b/SQLite.Classic.MPM/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPM).sql @@ -67,8 +67,8 @@ WHERE BeforeExecute -- SQLite.Classic.MPM SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @Name NVarChar -- String +SET @Name = NULL SELECT [item_1].[Id], @@ -79,7 +79,7 @@ FROM LEFT JOIN [PayRate] [a_PayRate] ON [item_1].[PayRateId] = [a_PayRate].[Id] WHERE CASE - WHEN [item_1].[PayRateId] IS NULL THEN @p + WHEN [item_1].[PayRateId] IS NULL THEN @Name ELSE [a_PayRate].[Name] END = 'test' diff --git a/SQLite.Classic.MPU.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU.LinqService).sql b/SQLite.Classic.MPU.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU.LinqService).sql index 826054cb45d..d4578db9c23 100644 --- a/SQLite.Classic.MPU.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU.LinqService).sql +++ b/SQLite.Classic.MPU.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPU).sql index eafe76f4429..409647009ec 100644 --- a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SQLite.Classic.MPU).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPU).sql index eafe76f4429..409647009ec 100644 --- a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SQLite.Classic.MPU).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 1 BeforeExecute diff --git a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPU).sql index d5572192454..24ad204d033 100644 --- a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SQLite.Classic.MPU).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPU).sql index d5572192454..24ad204d033 100644 --- a/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SQLite.Classic.MPU).sql @@ -36,8 +36,6 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite (asynchronously) DECLARE @Id -- Int32 SET @Id = 2 -DECLARE @Id_1 -- Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id LIMIT 2 BeforeExecute diff --git a/SQLite.Classic.MPU/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU).sql index 826054cb45d..d4578db9c23 100644 --- a/SQLite.Classic.MPU/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SQLite.Classic.MPU).sql @@ -1,7 +1,7 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPU).sql index 31ec3a6cf58..785c4fecc61 100644 --- a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SQLite.Classic.MPU).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @IntProp -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE ELSE [x].[StringProp] || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 diff --git a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPU).sql index 1e9bc6c1b1b..e0be090c411 100644 --- a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull1(SQLite.Classic.MPU).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -46,7 +46,7 @@ FROM [ConditionalData] [x] WHERE CASE - WHEN [x].[StringProp] = '1' THEN @p + WHEN [x].[StringProp] = '1' THEN @StringProp ELSE [x].[StringProp] END LIKE '%2%' ESCAPE '~' diff --git a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPU).sql index 7db49cd8ab4..d625f8514e1 100644 --- a/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionWithNull2(SQLite.Classic.MPU).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @StringProp NVarChar -- String +SET @StringProp = NULL SELECT [x].[Id], @@ -47,7 +47,7 @@ FROM WHERE CASE WHEN [x].[StringProp] = '1' THEN [x].[StringProp] - ELSE @p + ELSE @StringProp END LIKE '%2%' ESCAPE '~' BeforeExecute diff --git a/SQLite.Classic.MPU/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPU).sql index 3a76faa90be..1c51a4ebc52 100644 --- a/SQLite.Classic.MPU/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SQLite.Classic.MPU).sql @@ -122,7 +122,7 @@ BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite SELECT - [t5].[SUM_1], + [t5].[WithParentReference], [t5].[WithParentReferenceCustom1], [t5].[WithParentReferenceCustom2], [t5].[WithoutParentReference] @@ -153,7 +153,7 @@ FROM WHERE [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t5] ORDER BY - Coalesce([t5].[SUM_1], 0), + Coalesce([t5].[WithParentReference], 0), Coalesce([t5].[WithParentReferenceCustom1], 0), Coalesce([t5].[WithParentReferenceCustom2], 0), Coalesce([t5].[WithoutParentReference], 0) DESC diff --git a/SQLite.Classic.MPU/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPU).sql b/SQLite.Classic.MPU/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPU).sql index f063e712c7c..8d1b867114f 100644 --- a/SQLite.Classic.MPU/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPU).sql +++ b/SQLite.Classic.MPU/Tests/UserTests/Issue3371Tests/Tests.UserTests.Issue3371Tests.NullReferenceExceptionTest(SQLite.Classic.MPU).sql @@ -67,8 +67,8 @@ WHERE BeforeExecute -- SQLite.Classic.MPU SQLite.Classic SQLite -DECLARE @p NVarChar -- String -SET @p = NULL +DECLARE @Name NVarChar -- String +SET @Name = NULL SELECT [item_1].[Id], @@ -79,7 +79,7 @@ FROM LEFT JOIN [PayRate] [a_PayRate] ON [item_1].[PayRateId] = [a_PayRate].[Id] WHERE CASE - WHEN [item_1].[PayRateId] IS NULL THEN @p + WHEN [item_1].[PayRateId] IS NULL THEN @Name ELSE [a_PayRate].[Name] END = 'test' From 79d5a9af35237662ae4a886552b47c627bf27eba Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:16:02 +0000 Subject: [PATCH 05/37] [Windows / SQL Server 2005] baselines --- ...ncatUnionTests.Concat502(SqlServer.2005.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2005.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2005.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2005.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2005.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2005.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2005.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2005).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2005).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2005).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2005).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2005).sql | 6 +++--- 14 files changed, 26 insertions(+), 42 deletions(-) diff --git a/SqlServer.2005.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.LinqService).sql b/SqlServer.2005.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.LinqService).sql index 88f54ec6f94..7afb5c39322 100644 --- a/SqlServer.2005.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.LinqService).sql +++ b/SqlServer.2005.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2005.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS.LinqService).sql b/SqlServer.2005.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS.LinqService).sql index 7faf44ed289..50bed5cf422 100644 --- a/SqlServer.2005.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS.LinqService).sql +++ b/SqlServer.2005.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005.MS).sql index 66a604dca55..f10db46ebe4 100644 --- a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005.MS SqlServer.2005 diff --git a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005.MS).sql index 66a604dca55..f10db46ebe4 100644 --- a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005.MS SqlServer.2005 diff --git a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005.MS).sql index dfbeeff1294..ff2936dcdf3 100644 --- a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005.MS SqlServer.2005 diff --git a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005.MS).sql index dfbeeff1294..ff2936dcdf3 100644 --- a/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005.MS SqlServer.2005 diff --git a/SqlServer.2005.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS).sql index 7faf44ed289..50bed5cf422 100644 --- a/SqlServer.2005.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2005.MS SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2005.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005.MS).sql b/SqlServer.2005.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005.MS).sql index e197d9e3f8c..2877ab9c357 100644 --- a/SqlServer.2005.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005.MS).sql +++ b/SqlServer.2005.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005.MS).sql @@ -37,8 +37,8 @@ SELECT 10,N'String10' BeforeExecute -- SqlServer.2005.MS SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -60,7 +60,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005).sql index 1d5b9951b62..40933b05d92 100644 --- a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2005).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005 diff --git a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005).sql index 1d5b9951b62..40933b05d92 100644 --- a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2005).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005 diff --git a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005).sql index 10ea83cd23a..59e8994694f 100644 --- a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2005).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005 diff --git a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005).sql index 10ea83cd23a..59e8994694f 100644 --- a/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2005).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2005 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2005 diff --git a/SqlServer.2005/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005).sql index 88f54ec6f94..7afb5c39322 100644 --- a/SqlServer.2005/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2005).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2005/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005).sql b/SqlServer.2005/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005).sql index 7c8c4d9ac9c..ec86b64e87a 100644 --- a/SqlServer.2005/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005).sql +++ b/SqlServer.2005/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2005).sql @@ -37,8 +37,8 @@ SELECT 10,N'String10' BeforeExecute -- SqlServer.2005 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -60,7 +60,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 From 94c933f0ece36ba91012d1160db6b186d55a0abd Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:26:02 +0000 Subject: [PATCH 06/37] [Windows / SQL Server 2019] baselines --- ...ncatUnionTests.Concat502(SqlServer.2019.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2019.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2019.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2019.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2019.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2019.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2019.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2019.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2019).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2019).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2019).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2019).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2019).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2019).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2019.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.LinqService).sql b/SqlServer.2019.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.LinqService).sql index 3adb2d1c6a8..e1712942ffc 100644 --- a/SqlServer.2019.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.LinqService).sql +++ b/SqlServer.2019.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2019.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS.LinqService).sql b/SqlServer.2019.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS.LinqService).sql index e14a0235b52..7cc79c37b90 100644 --- a/SqlServer.2019.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS.LinqService).sql +++ b/SqlServer.2019.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019.MS).sql index 531b77ffd1b..55a9ca08989 100644 --- a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019.MS SqlServer.2019 diff --git a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019.MS).sql index 531b77ffd1b..55a9ca08989 100644 --- a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019.MS SqlServer.2019 diff --git a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019.MS).sql index 2a078d513b0..abd240cd866 100644 --- a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019.MS SqlServer.2019 diff --git a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019.MS).sql index 2a078d513b0..abd240cd866 100644 --- a/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019.MS SqlServer.2019 diff --git a/SqlServer.2019.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS).sql index e14a0235b52..7cc79c37b90 100644 --- a/SqlServer.2019.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2019.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019.MS).sql index fb5ddd42eb6..872082c1bec 100644 --- a/SqlServer.2019.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2019.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2019.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019.MS).sql b/SqlServer.2019.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019.MS).sql index fdc5883b31a..115d011f46b 100644 --- a/SqlServer.2019.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019.MS).sql +++ b/SqlServer.2019.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2019.MS SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019).sql index 359b243f680..dc8ae0789b0 100644 --- a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2019).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019 diff --git a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019).sql index 359b243f680..dc8ae0789b0 100644 --- a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2019).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019 diff --git a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019).sql index 2fcd6bc3dee..d4774089308 100644 --- a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2019).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019 diff --git a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019).sql index 2fcd6bc3dee..d4774089308 100644 --- a/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2019).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2019 diff --git a/SqlServer.2019/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019).sql index 3adb2d1c6a8..e1712942ffc 100644 --- a/SqlServer.2019/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2019).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2019/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019).sql b/SqlServer.2019/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019).sql index 7af49d1bf85..ff8d37cdb4d 100644 --- a/SqlServer.2019/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2019).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2019/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019).sql b/SqlServer.2019/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019).sql index 5f3a73844b9..23ee3da7c0d 100644 --- a/SqlServer.2019/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019).sql +++ b/SqlServer.2019/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2019).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 686d22be45be942606636f549f7cb15dc3231467 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:36:25 +0000 Subject: [PATCH 07/37] [Windows / SQL Server 2016] baselines --- ...ncatUnionTests.Concat502(SqlServer.2016.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2016.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2016.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2016.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2016.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2016.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2016.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2016.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2016).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2016).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2016).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2016).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2016).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2016).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2016.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.LinqService).sql b/SqlServer.2016.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.LinqService).sql index ffdf4843fa3..7101faa9235 100644 --- a/SqlServer.2016.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.LinqService).sql +++ b/SqlServer.2016.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2016.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS.LinqService).sql b/SqlServer.2016.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS.LinqService).sql index feda30e6f6c..48655e86bf3 100644 --- a/SqlServer.2016.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS.LinqService).sql +++ b/SqlServer.2016.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016.MS).sql index 448e457b1d7..58e74eb4bc9 100644 --- a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016.MS SqlServer.2016 diff --git a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016.MS).sql index 448e457b1d7..58e74eb4bc9 100644 --- a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016.MS SqlServer.2016 diff --git a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016.MS).sql index 8715eb83a1d..6e1495d5a6c 100644 --- a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016.MS SqlServer.2016 diff --git a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016.MS).sql index 8715eb83a1d..6e1495d5a6c 100644 --- a/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016.MS SqlServer.2016 diff --git a/SqlServer.2016.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS).sql index feda30e6f6c..48655e86bf3 100644 --- a/SqlServer.2016.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2016.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016.MS).sql index e714df668e8..0aa479370d6 100644 --- a/SqlServer.2016.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2016.MS SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2016.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016.MS).sql b/SqlServer.2016.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016.MS).sql index aa5a5096a7f..76d4219ce5c 100644 --- a/SqlServer.2016.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016.MS).sql +++ b/SqlServer.2016.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2016.MS SqlServer.2016 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016).sql index 624ecc2a247..e4c538f8796 100644 --- a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2016).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016 diff --git a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016).sql index 624ecc2a247..e4c538f8796 100644 --- a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2016).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016 diff --git a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016).sql index ced9d6efe44..707979683b7 100644 --- a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2016).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016 diff --git a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016).sql index ced9d6efe44..707979683b7 100644 --- a/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2016).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2016 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2016 diff --git a/SqlServer.2016/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016).sql index ffdf4843fa3..7101faa9235 100644 --- a/SqlServer.2016/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2016).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2016/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016).sql b/SqlServer.2016/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016).sql index 1a4a31e49b7..8b71e8b654c 100644 --- a/SqlServer.2016/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2016).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2016 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2016/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016).sql b/SqlServer.2016/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016).sql index 841867f98f0..f5f9b03e065 100644 --- a/SqlServer.2016/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016).sql +++ b/SqlServer.2016/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2016).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2016 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 537dfd7004beaa8daeaed4c0319f59d29b86c699 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:37:46 +0000 Subject: [PATCH 08/37] [Windows / SQL Server 2012] baselines --- ...ncatUnionTests.Concat502(SqlServer.2012.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2012.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2012.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2012.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2012.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2012.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2012.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2012.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2012).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2012).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2012).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2012).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2012).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2012).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2012.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.LinqService).sql b/SqlServer.2012.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.LinqService).sql index 79e6a4d391a..e4b52dcd6e4 100644 --- a/SqlServer.2012.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.LinqService).sql +++ b/SqlServer.2012.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2012.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS.LinqService).sql b/SqlServer.2012.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS.LinqService).sql index 721335154fe..7fe44e5e36d 100644 --- a/SqlServer.2012.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS.LinqService).sql +++ b/SqlServer.2012.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012.MS).sql index ad155624732..4eea0a1faf1 100644 --- a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012.MS SqlServer.2012 diff --git a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012.MS).sql index ad155624732..4eea0a1faf1 100644 --- a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012.MS SqlServer.2012 diff --git a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012.MS).sql index 266eff461af..963ff734d64 100644 --- a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012.MS SqlServer.2012 diff --git a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012.MS).sql index 266eff461af..963ff734d64 100644 --- a/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012.MS SqlServer.2012 diff --git a/SqlServer.2012.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS).sql index 721335154fe..7fe44e5e36d 100644 --- a/SqlServer.2012.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2012.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012.MS).sql index 06a59aa1dee..e741ed10475 100644 --- a/SqlServer.2012.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012.MS).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2012.MS SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -57,7 +57,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2012.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012.MS).sql b/SqlServer.2012.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012.MS).sql index 833da527a50..e676bfeff57 100644 --- a/SqlServer.2012.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012.MS).sql +++ b/SqlServer.2012.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012.MS).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2012.MS SqlServer.2012 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -160,7 +160,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -238,7 +238,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012).sql index 0cab05bac35..bb846591165 100644 --- a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2012).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012 diff --git a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012).sql index 0cab05bac35..bb846591165 100644 --- a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2012).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012 diff --git a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012).sql index 8e5e8c82d4d..cf4159c3754 100644 --- a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2012).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012 diff --git a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012).sql index 8e5e8c82d4d..cf4159c3754 100644 --- a/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2012).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2012 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2012 diff --git a/SqlServer.2012/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012).sql index 79e6a4d391a..e4b52dcd6e4 100644 --- a/SqlServer.2012/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2012).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2012/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012).sql b/SqlServer.2012/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012).sql index da6209e7fb3..cd5886fb51e 100644 --- a/SqlServer.2012/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2012).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2012 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -57,7 +57,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2012/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012).sql b/SqlServer.2012/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012).sql index cbb587c1304..43aedf47c41 100644 --- a/SqlServer.2012/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012).sql +++ b/SqlServer.2012/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2012).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2012 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -160,7 +160,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -238,7 +238,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 3c42925880aaf2bc2c195845ac7703b97a12cb90 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:38:09 +0000 Subject: [PATCH 09/37] [Linux / DB2 LUW 11.5] baselines --- ...sts.Linq.ConcatUnionTests.Concat502(DB2.LinqService).sql | 6 +++--- ....CompileTestsAsync.FirstOrDefaultPredicateAsync(DB2).sql | 4 +--- ...ests.Linq.CompileTestsAsync.FirstPredicateAsync(DB2).sql | 4 +--- ...CompileTestsAsync.SingleOrDefaultPredicateAsync(DB2).sql | 4 +--- ...sts.Linq.CompileTestsAsync.SinglePredicateAsync(DB2).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(DB2).sql | 6 +++--- .../Tests.Linq.ConditionalTests.ViaConditionDeep(DB2).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/DB2.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2.LinqService).sql b/DB2.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2.LinqService).sql index 225ee076a28..49f3cfcddfb 100644 --- a/DB2.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2.LinqService).sql +++ b/DB2.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(DB2).sql b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(DB2).sql index 830f82d4448..154546c3005 100644 --- a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(DB2).sql +++ b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(DB2).sql @@ -44,8 +44,6 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW (asynchronously) DECLARE @Id Integer(4) -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer(4) -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -53,7 +51,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(DB2).sql b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(DB2).sql index 830f82d4448..154546c3005 100644 --- a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(DB2).sql +++ b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(DB2).sql @@ -44,8 +44,6 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW (asynchronously) DECLARE @Id Integer(4) -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer(4) -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -53,7 +51,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(DB2).sql b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(DB2).sql index c8e11f55f6d..5f58c10f9d2 100644 --- a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(DB2).sql +++ b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(DB2).sql @@ -44,8 +44,6 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW (asynchronously) DECLARE @Id Integer(4) -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer(4) -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -53,7 +51,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(DB2).sql b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(DB2).sql index c8e11f55f6d..5f58c10f9d2 100644 --- a/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(DB2).sql +++ b/DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(DB2).sql @@ -44,8 +44,6 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW (asynchronously) DECLARE @Id Integer(4) -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer(4) -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -53,7 +51,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/DB2/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2).sql b/DB2/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2).sql index 225ee076a28..49f3cfcddfb 100644 --- a/DB2/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2).sql +++ b/DB2/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(DB2).sql @@ -1,7 +1,7 @@ BeforeExecute -- DB2 DB2.LUW DB2LUW -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/DB2/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(DB2).sql b/DB2/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(DB2).sql index df1a6a67440..74420028e93 100644 --- a/DB2/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(DB2).sql +++ b/DB2/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(DB2).sql @@ -44,8 +44,8 @@ VALUES BeforeExecute -- DB2 DB2.LUW DB2LUW -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT "x"."Id", @@ -64,7 +64,7 @@ WHERE ELSE "x"."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @p + WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @IntProp WHEN "x"."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 139105d71f5a84f2de62b9008c125c561386e0d9 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:40:53 +0000 Subject: [PATCH 10/37] [Windows / SQL Server 2008] baselines --- ...ncatUnionTests.Concat502(SqlServer.2008.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2008.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2008.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2008.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2008.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2008.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2008.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2008.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2008).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2008).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2008).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2008).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2008).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2008).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2008.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.LinqService).sql b/SqlServer.2008.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.LinqService).sql index e2696141bfd..a10e4fd3011 100644 --- a/SqlServer.2008.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.LinqService).sql +++ b/SqlServer.2008.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2008.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS.LinqService).sql b/SqlServer.2008.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS.LinqService).sql index 32a9b0328b6..2f8fc10a098 100644 --- a/SqlServer.2008.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS.LinqService).sql +++ b/SqlServer.2008.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008.MS).sql index 4895c38c838..5dfe03afea0 100644 --- a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008.MS SqlServer.2008 diff --git a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008.MS).sql index 4895c38c838..5dfe03afea0 100644 --- a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008.MS SqlServer.2008 diff --git a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008.MS).sql index 4c843ebbb02..8d08c334eb6 100644 --- a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008.MS SqlServer.2008 diff --git a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008.MS).sql index 4c843ebbb02..8d08c334eb6 100644 --- a/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008.MS SqlServer.2008 diff --git a/SqlServer.2008.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS).sql index 32a9b0328b6..2f8fc10a098 100644 --- a/SqlServer.2008.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2008.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008.MS).sql index 8d6a8d44429..7054cb77398 100644 --- a/SqlServer.2008.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008.MS).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2008.MS SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -61,7 +61,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2008.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008.MS).sql b/SqlServer.2008.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008.MS).sql index a5f8592fa90..3ac7e9b6f17 100644 --- a/SqlServer.2008.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008.MS).sql +++ b/SqlServer.2008.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008.MS).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2008.MS SqlServer.2008 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -166,7 +166,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -263,7 +263,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008).sql index 0b8d8379307..a79f6fa35cf 100644 --- a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2008).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008 diff --git a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008).sql index 0b8d8379307..a79f6fa35cf 100644 --- a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2008).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008 diff --git a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008).sql index 95d3e373320..c18ab5f0875 100644 --- a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2008).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008 diff --git a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008).sql index 95d3e373320..c18ab5f0875 100644 --- a/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2008).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2008 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2008 diff --git a/SqlServer.2008/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008).sql index e2696141bfd..a10e4fd3011 100644 --- a/SqlServer.2008/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2008).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/SqlServer.2008/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008).sql b/SqlServer.2008/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008).sql index 94985f36e8b..7e3f1b8e3f1 100644 --- a/SqlServer.2008/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2008).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2008 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -61,7 +61,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2008/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008).sql b/SqlServer.2008/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008).sql index 5fa90f0f91a..c151ce7afc6 100644 --- a/SqlServer.2008/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008).sql +++ b/SqlServer.2008/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2008).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2008 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -166,7 +166,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -263,7 +263,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From d7606602ba63836b17de35c6502f56b6c7e2f305 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:41:42 +0000 Subject: [PATCH 11/37] [Windows / SQL Server 2017] baselines --- ...ncatUnionTests.Concat502(SqlServer.2017.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2017.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2017.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2017.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2017.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2017.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2017.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2017.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2017).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2017).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2017).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2017).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2017).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2017).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2017.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.LinqService).sql b/SqlServer.2017.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.LinqService).sql index b2303dea6fb..f6342b3be44 100644 --- a/SqlServer.2017.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.LinqService).sql +++ b/SqlServer.2017.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2017.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS.LinqService).sql b/SqlServer.2017.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS.LinqService).sql index 65bdf9d32b0..9a538c908a4 100644 --- a/SqlServer.2017.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS.LinqService).sql +++ b/SqlServer.2017.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017.MS).sql index a68fb9e9964..a8bbffb71f8 100644 --- a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017.MS SqlServer.2017 diff --git a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017.MS).sql index a68fb9e9964..a8bbffb71f8 100644 --- a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017.MS SqlServer.2017 diff --git a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017.MS).sql index c610fad69a2..00d7a36a74e 100644 --- a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017.MS SqlServer.2017 diff --git a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017.MS).sql index c610fad69a2..00d7a36a74e 100644 --- a/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017.MS SqlServer.2017 diff --git a/SqlServer.2017.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS).sql index 65bdf9d32b0..9a538c908a4 100644 --- a/SqlServer.2017.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2017.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017.MS).sql index 04489d5320c..40939469aa4 100644 --- a/SqlServer.2017.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2017.MS SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2017.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017.MS).sql b/SqlServer.2017.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017.MS).sql index 89e8a48ba43..901067d22ce 100644 --- a/SqlServer.2017.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017.MS).sql +++ b/SqlServer.2017.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2017.MS SqlServer.2017 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017).sql index 92e94b48f1e..e8e64ac94d1 100644 --- a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2017).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017 diff --git a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017).sql index 92e94b48f1e..e8e64ac94d1 100644 --- a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2017).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017 diff --git a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017).sql index f93d5f2d6bd..e37f21700f1 100644 --- a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2017).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017 diff --git a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017).sql index f93d5f2d6bd..e37f21700f1 100644 --- a/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2017).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2017 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2017 diff --git a/SqlServer.2017/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017).sql index b2303dea6fb..f6342b3be44 100644 --- a/SqlServer.2017/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2017).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2017/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017).sql b/SqlServer.2017/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017).sql index 6a3f5b1d464..89cf2176046 100644 --- a/SqlServer.2017/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2017).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2017 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2017/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017).sql b/SqlServer.2017/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017).sql index b1d6952c07f..aa90ab79ec1 100644 --- a/SqlServer.2017/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017).sql +++ b/SqlServer.2017/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2017).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2017 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From f88d51b4324c8da313573164878d6edc6cdcc5fb Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:45:23 +0000 Subject: [PATCH 12/37] [Windows / SQL Server EXTRAS] baselines --- ...nionTests.Concat502(SqlServer.Contained.LinqService).sql | 6 +++--- ...nTests.Concat502(SqlServer.Contained.MS.LinqService).sql | 6 +++--- ...FirstOrDefaultPredicateAsync(SqlServer.Contained.MS).sql | 4 +--- ...stsAsync.FirstPredicateAsync(SqlServer.Contained.MS).sql | 4 +--- ...ingleOrDefaultPredicateAsync(SqlServer.Contained.MS).sql | 4 +--- ...tsAsync.SinglePredicateAsync(SqlServer.Contained.MS).sql | 4 +--- ...q.ConcatUnionTests.Concat502(SqlServer.Contained.MS).sql | 6 +++--- ...tionalTests.ViaConditionDeep(SqlServer.Contained.MS).sql | 6 +++--- ...259Tests.SubqueryAggregation(SqlServer.Contained.MS).sql | 6 +++--- ...nc.FirstOrDefaultPredicateAsync(SqlServer.Contained).sql | 4 +--- ...eTestsAsync.FirstPredicateAsync(SqlServer.Contained).sql | 4 +--- ...c.SingleOrDefaultPredicateAsync(SqlServer.Contained).sql | 4 +--- ...TestsAsync.SinglePredicateAsync(SqlServer.Contained).sql | 4 +--- ...Linq.ConcatUnionTests.Concat502(SqlServer.Contained).sql | 6 +++--- ...nditionalTests.ViaConditionDeep(SqlServer.Contained).sql | 6 +++--- ...ue3259Tests.SubqueryAggregation(SqlServer.Contained).sql | 6 +++--- ...ConcatUnionTests.Concat502(SqlServer.SA.LinqService).sql | 6 +++--- ...inq.ParameterTests.Caching(SqlServer.SA.LinqService).sql | 4 +--- ...catUnionTests.Concat502(SqlServer.SA.MS.LinqService).sql | 6 +++--- ...sAsync.FirstOrDefaultPredicateAsync(SqlServer.SA.MS).sql | 4 +--- ...mpileTestsAsync.FirstPredicateAsync(SqlServer.SA.MS).sql | 4 +--- ...Async.SingleOrDefaultPredicateAsync(SqlServer.SA.MS).sql | 4 +--- ...pileTestsAsync.SinglePredicateAsync(SqlServer.SA.MS).sql | 4 +--- ...sts.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS).sql | 6 +++--- ...q.ConditionalTests.ViaConditionDeep(SqlServer.SA.MS).sql | 6 +++--- ....Issue3259Tests.SubqueryAggregation(SqlServer.SA.MS).sql | 6 +++--- ...estsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA).sql | 4 +--- ....CompileTestsAsync.FirstPredicateAsync(SqlServer.SA).sql | 4 +--- ...stsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA).sql | 4 +--- ...CompileTestsAsync.SinglePredicateAsync(SqlServer.SA).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA).sql | 6 +++--- ...Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA).sql | 6 +++--- ...sts.Issue3259Tests.SubqueryAggregation(SqlServer.SA).sql | 6 +++--- 33 files changed, 65 insertions(+), 99 deletions(-) diff --git a/SqlServer.Contained.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.LinqService).sql b/SqlServer.Contained.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.LinqService).sql index 4ccbe3999f6..26ae5eec4d2 100644 --- a/SqlServer.Contained.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.LinqService).sql +++ b/SqlServer.Contained.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.Contained.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS.LinqService).sql b/SqlServer.Contained.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS.LinqService).sql index 671d82a6d80..f530d2a4e05 100644 --- a/SqlServer.Contained.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS.LinqService).sql +++ b/SqlServer.Contained.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained.MS).sql index 251c2389ec4..0b3fc0cfc73 100644 --- a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 diff --git a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained.MS).sql index 251c2389ec4..0b3fc0cfc73 100644 --- a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 diff --git a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained.MS).sql index caed5e35390..7174256328c 100644 --- a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 diff --git a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained.MS).sql index caed5e35390..7174256328c 100644 --- a/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 diff --git a/SqlServer.Contained.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS).sql index 671d82a6d80..f530d2a4e05 100644 --- a/SqlServer.Contained.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.Contained.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained.MS).sql index 987af49b788..5cda5c84d21 100644 --- a/SqlServer.Contained.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.Contained.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained.MS).sql b/SqlServer.Contained.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained.MS).sql index 54ba4919c55..427b7e71513 100644 --- a/SqlServer.Contained.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained.MS).sql +++ b/SqlServer.Contained.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.Contained.MS SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained).sql index 6d5fa9ee874..b01890d9977 100644 --- a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.Contained).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained SqlServer.2019 diff --git a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained).sql index 6d5fa9ee874..b01890d9977 100644 --- a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.Contained).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained SqlServer.2019 diff --git a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained).sql index 1c85ef02308..eaa50cf1024 100644 --- a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.Contained).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained SqlServer.2019 diff --git a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained).sql index 1c85ef02308..eaa50cf1024 100644 --- a/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.Contained).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.Contained SqlServer.2019 diff --git a/SqlServer.Contained/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained).sql index 4ccbe3999f6..26ae5eec4d2 100644 --- a/SqlServer.Contained/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.Contained).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.Contained/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained).sql b/SqlServer.Contained/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained).sql index fc477b99d09..42221a44046 100644 --- a/SqlServer.Contained/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.Contained).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.Contained SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.Contained/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained).sql b/SqlServer.Contained/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained).sql index bc1253f359f..b9f261a5ecd 100644 --- a/SqlServer.Contained/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained).sql +++ b/SqlServer.Contained/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.Contained).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.Contained SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.SA.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.LinqService).sql b/SqlServer.SA.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.LinqService).sql index 9d1408d6e92..8cf0a9ad5a9 100644 --- a/SqlServer.SA.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.LinqService).sql +++ b/SqlServer.SA.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql b/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql index 76251f8c9c4..9e483037c8d 100644 --- a/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql +++ b/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql @@ -2,8 +2,6 @@ -- SqlServer.SA SqlServer.2019 DECLARE @ParentID Int -- Int32 SET @ParentID = 1 -DECLARE @ParentID_1 Int -- Int32 -SET @ParentID_1 = 1 SELECT [x].[ParentID], @@ -11,7 +9,7 @@ SELECT FROM [Parent] [x] WHERE - ([x].[ParentID] = @ParentID OR [x].[ParentID] = @ParentID_1) + ([x].[ParentID] = @ParentID OR [x].[ParentID] = @ParentID) BeforeExecute -- SqlServer.SA SqlServer.2019 diff --git a/SqlServer.SA.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS.LinqService).sql b/SqlServer.SA.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS.LinqService).sql index 0edd2c84b64..c8e9a2c387c 100644 --- a/SqlServer.SA.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS.LinqService).sql +++ b/SqlServer.SA.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA.MS).sql index 47b5231c8d4..7e98b58dbca 100644 --- a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA.MS SqlServer.2019 diff --git a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA.MS).sql index 47b5231c8d4..7e98b58dbca 100644 --- a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA.MS SqlServer.2019 diff --git a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA.MS).sql index 542187dd660..47b415469d4 100644 --- a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA.MS SqlServer.2019 diff --git a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA.MS).sql index 542187dd660..47b415469d4 100644 --- a/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA.MS SqlServer.2019 diff --git a/SqlServer.SA.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS).sql index 0edd2c84b64..c8e9a2c387c 100644 --- a/SqlServer.SA.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.SA.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA.MS).sql index b79fa371535..b8b89dd2c62 100644 --- a/SqlServer.SA.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.SA.MS SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.SA.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA.MS).sql b/SqlServer.SA.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA.MS).sql index 3941d4d8c09..0592a262e48 100644 --- a/SqlServer.SA.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA.MS).sql +++ b/SqlServer.SA.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.SA.MS SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA).sql index ca8aaa47e3a..c3242e71d25 100644 --- a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.SA).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA SqlServer.2019 diff --git a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA).sql index ca8aaa47e3a..c3242e71d25 100644 --- a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.SA).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA SqlServer.2019 diff --git a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA).sql index 6a9bd9387a9..3383603f3e2 100644 --- a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.SA).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA SqlServer.2019 diff --git a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA).sql index 6a9bd9387a9..3383603f3e2 100644 --- a/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.SA).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.SA SqlServer.2019 diff --git a/SqlServer.SA/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA).sql index 9d1408d6e92..8cf0a9ad5a9 100644 --- a/SqlServer.SA/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.SA).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.SA/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA).sql b/SqlServer.SA/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA).sql index d1c9237b711..5f142e46b19 100644 --- a/SqlServer.SA/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.SA).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.SA SqlServer.2019 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.SA/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA).sql b/SqlServer.SA/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA).sql index 96ab91c2044..6a67b01492c 100644 --- a/SqlServer.SA/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA).sql +++ b/SqlServer.SA/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.SA).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.SA SqlServer.2019 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 1a50e565c68cbb9b6bbb110217e4e727ac927f39 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:45:54 +0000 Subject: [PATCH 13/37] [Linux / Firebird 2.5] baselines --- ...ConcatUnionTests.Concat502(Firebird.2.5.LinqService).sql | 6 +++--- ...SelectTests.Issue1788Test4(Firebird.2.5.LinqService).sql | 6 +++--- ...estsAsync.FirstOrDefaultPredicateAsync(Firebird.2.5).sql | 4 +--- ....CompileTestsAsync.FirstPredicateAsync(Firebird.2.5).sql | 4 +--- ...stsAsync.SingleOrDefaultPredicateAsync(Firebird.2.5).sql | 4 +--- ...CompileTestsAsync.SinglePredicateAsync(Firebird.2.5).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5).sql | 6 +++--- ...Linq.ConditionalTests.ViaConditionDeep(Firebird.2.5).sql | 6 +++--- .../Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5).sql | 6 +++--- 9 files changed, 19 insertions(+), 27 deletions(-) diff --git a/Firebird.2.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5.LinqService).sql b/Firebird.2.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5.LinqService).sql index 732883b8fcd..0f067222b9c 100644 --- a/Firebird.2.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5.LinqService).sql +++ b/Firebird.2.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.2.5 Firebird -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.2.5.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5.LinqService).sql b/Firebird.2.5.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5.LinqService).sql index ab332053bbd..5e871adb778 100644 --- a/Firebird.2.5.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5.LinqService).sql +++ b/Firebird.2.5.LinqService/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5.LinqService).sql @@ -87,14 +87,14 @@ FROM BeforeExecute -- Firebird.2.5 Firebird -DECLARE @p Char -- String -SET @p = '0' +DECLARE @f1 Char -- String +SET @f1 = '0' SELECT "l_1"."Id", "l_1"."Value1", "l_1"."HasValue", - CAST(@p AS CHAR(1)) + CAST(@f1 AS CHAR(1)) FROM "Table1788" "p" LEFT JOIN ( diff --git a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.2.5).sql index b600c050143..661b76aea7b 100644 --- a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.2.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.2.5 Firebird (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT FIRST 1 CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FIRST 1 FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) BeforeExecute -- Firebird.2.5 Firebird diff --git a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.2.5).sql index b600c050143..661b76aea7b 100644 --- a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.2.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.2.5 Firebird (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT FIRST 1 CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FIRST 1 FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) BeforeExecute -- Firebird.2.5 Firebird diff --git a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.2.5).sql index 7f3fde4ea07..13ab7c0a2d0 100644 --- a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.2.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.2.5 Firebird (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT FIRST 2 CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FIRST 2 FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) BeforeExecute -- Firebird.2.5 Firebird diff --git a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.2.5).sql index 7f3fde4ea07..13ab7c0a2d0 100644 --- a/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.2.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.2.5 Firebird (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT FIRST 2 CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FIRST 2 FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) BeforeExecute -- Firebird.2.5 Firebird diff --git a/Firebird.2.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5).sql index 732883b8fcd..0f067222b9c 100644 --- a/Firebird.2.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.2.5).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.2.5 Firebird -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.2.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.2.5).sql index 2b781f5b6f4..ea18dad5fd9 100644 --- a/Firebird.2.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.2.5).sql @@ -43,8 +43,8 @@ SELECT 10,'String10' FROM rdb$database BeforeExecute -- Firebird.2.5 Firebird -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT "x"."Id", @@ -63,7 +63,7 @@ WHERE ELSE "x"."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @p + WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @IntProp WHEN "x"."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/Firebird.2.5/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5).sql b/Firebird.2.5/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5).sql index 92bd8829926..910c69d894c 100644 --- a/Firebird.2.5/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5).sql +++ b/Firebird.2.5/Tests/Linq/SelectTests/Tests.Linq.SelectTests.Issue1788Test4(Firebird.2.5).sql @@ -45,14 +45,14 @@ FROM BeforeExecute -- Firebird.2.5 Firebird -DECLARE @p Char -- String -SET @p = '0' +DECLARE @f1 Char -- String +SET @f1 = '0' SELECT "l_1"."Id", "l_1"."Value1", "l_1"."HasValue", - CAST(@p AS CHAR(1)) + CAST(@f1 AS CHAR(1)) FROM "Table1788" "p" LEFT JOIN ( From d604c281bbceb4ce8e8ca058430ce61babdddc11 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:47:59 +0000 Subject: [PATCH 14/37] [Windows / SQL Server 2014] baselines --- ...ncatUnionTests.Concat502(SqlServer.2014.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2014.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2014.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2014.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2014.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2014.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2014.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2014.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2014).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2014).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2014).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2014).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2014).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2014).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2014.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.LinqService).sql b/SqlServer.2014.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.LinqService).sql index c50707b9a0c..37c1d8a64bc 100644 --- a/SqlServer.2014.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.LinqService).sql +++ b/SqlServer.2014.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2014.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS.LinqService).sql b/SqlServer.2014.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS.LinqService).sql index 83a78176edd..3a46c8d8dfc 100644 --- a/SqlServer.2014.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS.LinqService).sql +++ b/SqlServer.2014.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014.MS).sql index 25ce2686ca8..d15c5bac946 100644 --- a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014.MS SqlServer.2014 diff --git a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014.MS).sql index 25ce2686ca8..d15c5bac946 100644 --- a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014.MS SqlServer.2014 diff --git a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014.MS).sql index c2593292665..01701aa3284 100644 --- a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014.MS SqlServer.2014 diff --git a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014.MS).sql index c2593292665..01701aa3284 100644 --- a/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014.MS).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014.MS SqlServer.2014 diff --git a/SqlServer.2014.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS).sql index 83a78176edd..3a46c8d8dfc 100644 --- a/SqlServer.2014.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2014.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014.MS).sql index 414b8e621fc..43f2cc92241 100644 --- a/SqlServer.2014.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014.MS).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2014.MS SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -57,7 +57,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2014.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014.MS).sql b/SqlServer.2014.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014.MS).sql index 8900849cd8a..54fa1e4cbed 100644 --- a/SqlServer.2014.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014.MS).sql +++ b/SqlServer.2014.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014.MS).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2014.MS SqlServer.2014 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -160,7 +160,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -238,7 +238,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014).sql index 3907bc979f2..275df8ecd64 100644 --- a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2014).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014 diff --git a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014).sql index 3907bc979f2..275df8ecd64 100644 --- a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2014).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -47,7 +45,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014 diff --git a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014).sql index 0bd41cbe493..0cd7587ba1e 100644 --- a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2014).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014 diff --git a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014).sql index 0bd41cbe493..0cd7587ba1e 100644 --- a/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2014).sql @@ -38,8 +38,6 @@ BeforeExecute -- SqlServer.2014 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -47,7 +45,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2014 diff --git a/SqlServer.2014/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014).sql index c50707b9a0c..37c1d8a64bc 100644 --- a/SqlServer.2014/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2014).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2014/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014).sql b/SqlServer.2014/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014).sql index 758dd10be49..b101dd474ea 100644 --- a/SqlServer.2014/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2014).sql @@ -38,8 +38,8 @@ VALUES BeforeExecute -- SqlServer.2014 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -57,7 +57,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2014/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014).sql b/SqlServer.2014/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014).sql index eacfcf3293e..3e1967a8fc7 100644 --- a/SqlServer.2014/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014).sql +++ b/SqlServer.2014/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2014).sql @@ -130,7 +130,7 @@ BeforeExecute -- SqlServer.2014 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -160,7 +160,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -238,7 +238,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 6257a0defaa9ac7c5cd8473384d96444836ffdca Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:48:42 +0000 Subject: [PATCH 15/37] [Linux / Informix 14.10] baselines --- ...eTestsAsync.FirstOrDefaultPredicateAsync(Informix.DB2).sql | 4 +--- ...nq.CompileTestsAsync.FirstPredicateAsync(Informix.DB2).sql | 4 +--- ...TestsAsync.SingleOrDefaultPredicateAsync(Informix.DB2).sql | 4 +--- ...q.CompileTestsAsync.SinglePredicateAsync(Informix.DB2).sql | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Informix.DB2).sql b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Informix.DB2).sql index daae993daff..d83028e5345 100644 --- a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Informix.DB2).sql +++ b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Informix.DB2).sql @@ -155,8 +155,6 @@ VALUES BeforeExecute -- Informix.DB2 Informix (asynchronously) -DECLARE @Id Integer(4) -- Int32 -SET @Id = 2 SELECT FIRST 1 2, @@ -164,7 +162,7 @@ SELECT FIRST 1 FROM AsyncDataTable c_1 WHERE - c_1.Id = @Id + c_1.Id = 2 BeforeExecute -- Informix.DB2 Informix diff --git a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Informix.DB2).sql b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Informix.DB2).sql index daae993daff..d83028e5345 100644 --- a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Informix.DB2).sql +++ b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Informix.DB2).sql @@ -155,8 +155,6 @@ VALUES BeforeExecute -- Informix.DB2 Informix (asynchronously) -DECLARE @Id Integer(4) -- Int32 -SET @Id = 2 SELECT FIRST 1 2, @@ -164,7 +162,7 @@ SELECT FIRST 1 FROM AsyncDataTable c_1 WHERE - c_1.Id = @Id + c_1.Id = 2 BeforeExecute -- Informix.DB2 Informix diff --git a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Informix.DB2).sql b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Informix.DB2).sql index c3ea7a9ab36..5e6e86c6a91 100644 --- a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Informix.DB2).sql +++ b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Informix.DB2).sql @@ -155,8 +155,6 @@ VALUES BeforeExecute -- Informix.DB2 Informix (asynchronously) -DECLARE @Id Integer(4) -- Int32 -SET @Id = 2 SELECT FIRST 2 2, @@ -164,7 +162,7 @@ SELECT FIRST 2 FROM AsyncDataTable c_1 WHERE - c_1.Id = @Id + c_1.Id = 2 BeforeExecute -- Informix.DB2 Informix diff --git a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Informix.DB2).sql b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Informix.DB2).sql index c3ea7a9ab36..5e6e86c6a91 100644 --- a/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Informix.DB2).sql +++ b/Informix.DB2/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Informix.DB2).sql @@ -155,8 +155,6 @@ VALUES BeforeExecute -- Informix.DB2 Informix (asynchronously) -DECLARE @Id Integer(4) -- Int32 -SET @Id = 2 SELECT FIRST 2 2, @@ -164,7 +162,7 @@ SELECT FIRST 2 FROM AsyncDataTable c_1 WHERE - c_1.Id = @Id + c_1.Id = 2 BeforeExecute -- Informix.DB2 Informix From 53d6632106dfdf63ef5794ef7c28e6436f05917b Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:49:14 +0000 Subject: [PATCH 16/37] [Linux / Firebird 4.0] baselines --- ...q.ConcatUnionTests.Concat502(Firebird.4.LinqService).sql | 6 +++--- ...eTestsAsync.FirstOrDefaultPredicateAsync(Firebird.4).sql | 4 +--- ...nq.CompileTestsAsync.FirstPredicateAsync(Firebird.4).sql | 4 +--- ...TestsAsync.SingleOrDefaultPredicateAsync(Firebird.4).sql | 4 +--- ...q.CompileTestsAsync.SinglePredicateAsync(Firebird.4).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(Firebird.4).sql | 6 +++--- ...s.Linq.ConditionalTests.ViaConditionDeep(Firebird.4).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Firebird.4.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4.LinqService).sql b/Firebird.4.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4.LinqService).sql index 74ca7ae275c..6b6d6c34b47 100644 --- a/Firebird.4.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4.LinqService).sql +++ b/Firebird.4.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.4 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.4).sql b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.4).sql index b14c0fd7dc8..255b906d25d 100644 --- a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.4).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.4 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.4).sql b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.4).sql index b14c0fd7dc8..255b906d25d 100644 --- a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.4).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.4 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.4).sql b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.4).sql index d9aad4b691d..a6fc5efdae7 100644 --- a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.4).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.4 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.4).sql b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.4).sql index d9aad4b691d..a6fc5efdae7 100644 --- a/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.4).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.4 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.4/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4).sql b/Firebird.4/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4).sql index 74ca7ae275c..6b6d6c34b47 100644 --- a/Firebird.4/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.4).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.4 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.4/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.4).sql b/Firebird.4/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.4).sql index 42dc64d2308..dd8571f36c4 100644 --- a/Firebird.4/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.4).sql +++ b/Firebird.4/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.4).sql @@ -43,8 +43,8 @@ SELECT 10,'String10' FROM rdb$database BeforeExecute -- Firebird.4 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT "x"."Id", @@ -63,7 +63,7 @@ WHERE ELSE "x"."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @p + WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @IntProp WHEN "x"."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 7131387c2dd94638b196364f90f0486628897d69 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:49:38 +0000 Subject: [PATCH 17/37] [Linux / Firebird 3.0] baselines --- ...q.ConcatUnionTests.Concat502(Firebird.3.LinqService).sql | 6 +++--- ...eTestsAsync.FirstOrDefaultPredicateAsync(Firebird.3).sql | 4 +--- ...nq.CompileTestsAsync.FirstPredicateAsync(Firebird.3).sql | 4 +--- ...TestsAsync.SingleOrDefaultPredicateAsync(Firebird.3).sql | 4 +--- ...q.CompileTestsAsync.SinglePredicateAsync(Firebird.3).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(Firebird.3).sql | 6 +++--- ...s.Linq.ConditionalTests.ViaConditionDeep(Firebird.3).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Firebird.3.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3.LinqService).sql b/Firebird.3.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3.LinqService).sql index 706360358fc..35d2c985a84 100644 --- a/Firebird.3.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3.LinqService).sql +++ b/Firebird.3.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.3 Firebird3 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.3).sql b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.3).sql index 637ef60acda..4fa25ad29a3 100644 --- a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.3).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.3 Firebird3 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.3).sql b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.3).sql index 637ef60acda..4fa25ad29a3 100644 --- a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.3).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.3 Firebird3 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.3).sql b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.3).sql index f4c1609db7c..d38f7eff9e7 100644 --- a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.3).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.3 Firebird3 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.3).sql b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.3).sql index f4c1609db7c..d38f7eff9e7 100644 --- a/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.3).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.3 Firebird3 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.3/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3).sql b/Firebird.3/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3).sql index 706360358fc..35d2c985a84 100644 --- a/Firebird.3/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.3).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.3 Firebird3 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.3/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.3).sql b/Firebird.3/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.3).sql index 040d4962961..92b90792793 100644 --- a/Firebird.3/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.3).sql +++ b/Firebird.3/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.3).sql @@ -43,8 +43,8 @@ SELECT 10,'String10' FROM rdb$database BeforeExecute -- Firebird.3 Firebird3 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT "x"."Id", @@ -63,7 +63,7 @@ WHERE ELSE "x"."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @p + WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @IntProp WHEN "x"."StringProp" = '2' THEN 1 ELSE 2 END = 2 From fb7aca46874a24bba44df8f530d2ae92322c384a Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:51:18 +0000 Subject: [PATCH 18/37] [Linux / Firebird 5.0] baselines --- ...q.ConcatUnionTests.Concat502(Firebird.5.LinqService).sql | 6 +++--- ...eTestsAsync.FirstOrDefaultPredicateAsync(Firebird.5).sql | 4 +--- ...nq.CompileTestsAsync.FirstPredicateAsync(Firebird.5).sql | 4 +--- ...TestsAsync.SingleOrDefaultPredicateAsync(Firebird.5).sql | 4 +--- ...q.CompileTestsAsync.SinglePredicateAsync(Firebird.5).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(Firebird.5).sql | 6 +++--- ...s.Linq.ConditionalTests.ViaConditionDeep(Firebird.5).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Firebird.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5.LinqService).sql b/Firebird.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5.LinqService).sql index 1c731adf4bb..425cbc014a0 100644 --- a/Firebird.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5.LinqService).sql +++ b/Firebird.5.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.5 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.5).sql b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.5).sql index 4a29ce9bdd9..2193c3f0cf2 100644 --- a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Firebird.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.5 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.5).sql b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.5).sql index 4a29ce9bdd9..2193c3f0cf2 100644 --- a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Firebird.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.5 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.5).sql b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.5).sql index 28d1947780b..5cb7dd78968 100644 --- a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Firebird.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.5 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.5).sql b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.5).sql index 28d1947780b..5cb7dd78968 100644 --- a/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Firebird.5).sql @@ -43,8 +43,6 @@ BeforeExecute -- Firebird.5 Firebird4 (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT CAST(@Id AS Int), @@ -52,7 +50,7 @@ SELECT FROM "AsyncDataTable" "c_1" WHERE - "c_1"."Id" = @Id_1 + "c_1"."Id" = CAST(@Id AS Int) FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Firebird.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5).sql b/Firebird.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5).sql index 1c731adf4bb..425cbc014a0 100644 --- a/Firebird.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Firebird.5).sql @@ -1,7 +1,7 @@ BeforeExecute -- Firebird.5 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN "p_1"."ParentID" IS NOT NULL THEN "p_1"."Value1" - ELSE CAST(@p AS Int) + ELSE CAST(@Value1 AS Int) END as "Value1", "p_1"."ParentID", "p_1"."ParentID_1", diff --git a/Firebird.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.5).sql b/Firebird.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.5).sql index fc9d69243ab..c1334200ef5 100644 --- a/Firebird.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.5).sql +++ b/Firebird.5/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Firebird.5).sql @@ -43,8 +43,8 @@ SELECT 10,'String10' FROM rdb$database BeforeExecute -- Firebird.5 Firebird4 -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT "x"."Id", @@ -63,7 +63,7 @@ WHERE ELSE "x"."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @p + WHEN "x"."StringProp" = '1' OR "x"."StringProp" IS NULL THEN @IntProp WHEN "x"."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 5c0602aac135c5e1f4a5db09d363b92350cbcbc7 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:55:40 +0000 Subject: [PATCH 19/37] [Linux / MariaDB 11] baselines --- ...q.ConcatUnionTests.Concat502(MariaDB.11.LinqService).sql | 6 +++--- ...eTestsAsync.FirstOrDefaultPredicateAsync(MariaDB.11).sql | 4 +--- ...nq.CompileTestsAsync.FirstPredicateAsync(MariaDB.11).sql | 4 +--- ...TestsAsync.SingleOrDefaultPredicateAsync(MariaDB.11).sql | 4 +--- ...q.CompileTestsAsync.SinglePredicateAsync(MariaDB.11).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11).sql | 6 +++--- ...s.Linq.ConditionalTests.ViaConditionDeep(MariaDB.11).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/MariaDB.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11.LinqService).sql b/MariaDB.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11.LinqService).sql index 022491e5fa4..03941d7508d 100644 --- a/MariaDB.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11.LinqService).sql +++ b/MariaDB.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MariaDB.11).sql b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MariaDB.11).sql index 96dc502d913..c34c9878ef3 100644 --- a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MariaDB.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MariaDB.11).sql b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MariaDB.11).sql index 96dc502d913..c34c9878ef3 100644 --- a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MariaDB.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MariaDB.11).sql b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MariaDB.11).sql index bac78f55a82..98abf783756 100644 --- a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MariaDB.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MariaDB.11).sql b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MariaDB.11).sql index bac78f55a82..98abf783756 100644 --- a/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MariaDB.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MariaDB.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11).sql b/MariaDB.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11).sql index 022491e5fa4..03941d7508d 100644 --- a/MariaDB.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MariaDB.11).sql @@ -1,7 +1,7 @@ BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MariaDB.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MariaDB.11).sql b/MariaDB.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MariaDB.11).sql index 0ccbee46327..657b608de33 100644 --- a/MariaDB.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MariaDB.11).sql +++ b/MariaDB.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MariaDB.11).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- MariaDB.11 MariaDB.10.MySqlConnector MySql -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT `x`.`Id`, @@ -56,7 +56,7 @@ WHERE ELSE Concat(`x`.`StringProp`, '2') END LIKE '%2' ESCAPE '~' AND CASE - WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @p + WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @IntProp WHEN `x`.`StringProp` = '2' THEN 1 ELSE 2 END = 2 From 3d822618a1dc28556a4dd7acca757f6140008e53 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 20:58:58 +0000 Subject: [PATCH 20/37] [Linux / MySQL 5.7 (both providers)] baselines --- ...nq.ConcatUnionTests.Concat502(MySql.5.7.LinqService).sql | 6 +++--- ...leTestsAsync.FirstOrDefaultPredicateAsync(MySql.5.7).sql | 4 +--- ...inq.CompileTestsAsync.FirstPredicateAsync(MySql.5.7).sql | 4 +--- ...eTestsAsync.SingleOrDefaultPredicateAsync(MySql.5.7).sql | 4 +--- ...nq.CompileTestsAsync.SinglePredicateAsync(MySql.5.7).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7).sql | 6 +++--- ...ts.Linq.ConditionalTests.ViaConditionDeep(MySql.5.7).sql | 6 +++--- ...UnionTests.Concat502(MySqlConnector.5.7.LinqService).sql | 6 +++--- ...ync.FirstOrDefaultPredicateAsync(MySqlConnector.5.7).sql | 4 +--- ...leTestsAsync.FirstPredicateAsync(MySqlConnector.5.7).sql | 4 +--- ...nc.SingleOrDefaultPredicateAsync(MySqlConnector.5.7).sql | 4 +--- ...eTestsAsync.SinglePredicateAsync(MySqlConnector.5.7).sql | 4 +--- ....Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7).sql | 6 +++--- ...onditionalTests.ViaConditionDeep(MySqlConnector.5.7).sql | 6 +++--- 14 files changed, 26 insertions(+), 42 deletions(-) diff --git a/MySql.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7.LinqService).sql b/MySql.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7.LinqService).sql index 106b3d223d8..163ab36728f 100644 --- a/MySql.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7.LinqService).sql +++ b/MySql.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.5.7).sql b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.5.7).sql index 619f71a1649..86e00938fc0 100644 --- a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.5.7).sql b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.5.7).sql index 619f71a1649..86e00938fc0 100644 --- a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.5.7).sql b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.5.7).sql index 42c5cb492ff..2581999a40b 100644 --- a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.5.7).sql b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.5.7).sql index 42c5cb492ff..2581999a40b 100644 --- a/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySql.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7).sql b/MySql.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7).sql index 106b3d223d8..163ab36728f 100644 --- a/MySql.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.5.7).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySql.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.5.7).sql b/MySql.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.5.7).sql index 26f9b5d109f..ff7f546cad0 100644 --- a/MySql.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.5.7).sql +++ b/MySql.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.5.7).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- MySql.5.7 MySql.5.7.MySql.Data MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT `x`.`Id`, @@ -56,7 +56,7 @@ WHERE ELSE Concat(`x`.`StringProp`, '2') END LIKE '%2' ESCAPE '~' AND CASE - WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @p + WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @IntProp WHEN `x`.`StringProp` = '2' THEN 1 ELSE 2 END = 2 diff --git a/MySqlConnector.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7.LinqService).sql b/MySqlConnector.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7.LinqService).sql index 9fcce52125e..970817d3c70 100644 --- a/MySqlConnector.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7.LinqService).sql +++ b/MySqlConnector.5.7.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.5.7).sql index 353d677903c..f13835d047f 100644 --- a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.5.7).sql index 353d677903c..f13835d047f 100644 --- a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.5.7).sql index 603206581eb..ca659aa44a3 100644 --- a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.5.7).sql index 603206581eb..ca659aa44a3 100644 --- a/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.5.7).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySqlConnector.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7).sql index 9fcce52125e..970817d3c70 100644 --- a/MySqlConnector.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.5.7).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySqlConnector.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.5.7).sql b/MySqlConnector.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.5.7).sql index d9d568cc6d6..88468f05cf6 100644 --- a/MySqlConnector.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.5.7).sql +++ b/MySqlConnector.5.7/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.5.7).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- MySqlConnector.5.7 MySql.5.7.MySqlConnector MySql57 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT `x`.`Id`, @@ -56,7 +56,7 @@ WHERE ELSE Concat(`x`.`StringProp`, '2') END LIKE '%2' ESCAPE '~' AND CASE - WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @p + WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @IntProp WHEN `x`.`StringProp` = '2' THEN 1 ELSE 2 END = 2 From ff288fdcf74aa462c9e046e59bfb2fb99893bd2f Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:05:08 +0000 Subject: [PATCH 21/37] [Linux / MySQL 8 (both providers)] baselines --- ...nq.ConcatUnionTests.Concat502(MySql.8.0.LinqService).sql | 6 +++--- ...leTestsAsync.FirstOrDefaultPredicateAsync(MySql.8.0).sql | 4 +--- ...inq.CompileTestsAsync.FirstPredicateAsync(MySql.8.0).sql | 4 +--- ...eTestsAsync.SingleOrDefaultPredicateAsync(MySql.8.0).sql | 4 +--- ...nq.CompileTestsAsync.SinglePredicateAsync(MySql.8.0).sql | 4 +--- .../Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0).sql | 6 +++--- ...ts.Linq.ConditionalTests.ViaConditionDeep(MySql.8.0).sql | 6 +++--- ...UnionTests.Concat502(MySqlConnector.8.0.LinqService).sql | 6 +++--- ...ync.FirstOrDefaultPredicateAsync(MySqlConnector.8.0).sql | 4 +--- ...leTestsAsync.FirstPredicateAsync(MySqlConnector.8.0).sql | 4 +--- ...nc.SingleOrDefaultPredicateAsync(MySqlConnector.8.0).sql | 4 +--- ...eTestsAsync.SinglePredicateAsync(MySqlConnector.8.0).sql | 4 +--- ....Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0).sql | 6 +++--- ...onditionalTests.ViaConditionDeep(MySqlConnector.8.0).sql | 6 +++--- 14 files changed, 26 insertions(+), 42 deletions(-) diff --git a/MySql.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0.LinqService).sql b/MySql.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0.LinqService).sql index 694d2dd3978..9dd9437f0c0 100644 --- a/MySql.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0.LinqService).sql +++ b/MySql.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.8.0).sql b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.8.0).sql index 29120590ecb..7eea0d29c0e 100644 --- a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySql.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.8.0).sql b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.8.0).sql index 29120590ecb..7eea0d29c0e 100644 --- a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySql.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.8.0).sql b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.8.0).sql index 058c50fb9cf..6c8273f105d 100644 --- a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySql.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.8.0).sql b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.8.0).sql index 058c50fb9cf..6c8273f105d 100644 --- a/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySql.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySql.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0).sql b/MySql.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0).sql index 694d2dd3978..9dd9437f0c0 100644 --- a/MySql.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySql.8.0).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySql.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.8.0).sql b/MySql.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.8.0).sql index 4416d9b6659..adde42a7770 100644 --- a/MySql.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.8.0).sql +++ b/MySql.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySql.8.0).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- MySql.8.0 MySql.8.0.MySql.Data MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT `x`.`Id`, @@ -56,7 +56,7 @@ WHERE ELSE Concat(`x`.`StringProp`, '2') END LIKE '%2' ESCAPE '~' AND CASE - WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @p + WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @IntProp WHEN `x`.`StringProp` = '2' THEN 1 ELSE 2 END = 2 diff --git a/MySqlConnector.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0.LinqService).sql b/MySqlConnector.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0.LinqService).sql index 3dab01244f1..df0d892663a 100644 --- a/MySqlConnector.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0.LinqService).sql +++ b/MySqlConnector.8.0.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.8.0).sql index 4344bd56f6b..6ac11fcbefe 100644 --- a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(MySqlConnector.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.8.0).sql index 4344bd56f6b..6ac11fcbefe 100644 --- a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(MySqlConnector.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 1 BeforeExecute diff --git a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.8.0).sql index be7183e154e..cc605a3825a 100644 --- a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(MySqlConnector.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.8.0).sql index be7183e154e..cc605a3825a 100644 --- a/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(MySqlConnector.8.0).sql @@ -36,8 +36,6 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT @Id, @@ -45,7 +43,7 @@ SELECT FROM `AsyncDataTable` `c_1` WHERE - `c_1`.`Id` = @Id_1 + `c_1`.`Id` = @Id LIMIT 2 BeforeExecute diff --git a/MySqlConnector.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0).sql index 3dab01244f1..df0d892663a 100644 --- a/MySqlConnector.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(MySqlConnector.8.0).sql @@ -1,7 +1,7 @@ BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT `p_2`.`ParentID`, @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN `p_1`.`ParentID` IS NOT NULL THEN `p_1`.`Value1` - ELSE @p + ELSE @Value1 END as `Value1`, `p_1`.`ParentID`, `p_1`.`ParentID_1`, diff --git a/MySqlConnector.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.8.0).sql b/MySqlConnector.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.8.0).sql index 69998b005b4..69813fb7f44 100644 --- a/MySqlConnector.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.8.0).sql +++ b/MySqlConnector.8.0/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(MySqlConnector.8.0).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT `x`.`Id`, @@ -56,7 +56,7 @@ WHERE ELSE Concat(`x`.`StringProp`, '2') END LIKE '%2' ESCAPE '~' AND CASE - WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @p + WHEN `x`.`StringProp` = '1' OR `x`.`StringProp` IS NULL THEN @IntProp WHEN `x`.`StringProp` = '2' THEN 1 ELSE 2 END = 2 From 38369bab220ba7ab030d312f7c09bc6322bae01f Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:06:10 +0200 Subject: [PATCH 22/37] [Linux / Oracle 11g XE] baselines --- ...tUnionTests.Concat502(Oracle.11.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.11.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.11.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.11.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.11.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.11.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.11.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed.LinqService).sql b/Oracle.11.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed.LinqService).sql index e468260de93..90cc30cc2d4 100644 --- a/Oracle.11.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed.LinqService).sql +++ b/Oracle.11.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.11.Managed Oracle11 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.11.Managed).sql index 79c4bbd2db2..7bacddcf453 100644 --- a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.11.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.11.Managed Oracle11 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id, @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 AND ROWNUM <= 1 + c_1."Id" = :Id AND ROWNUM <= 1 BeforeExecute -- Oracle.11.Managed Oracle11 diff --git a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.11.Managed).sql index 79c4bbd2db2..7bacddcf453 100644 --- a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.11.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.11.Managed Oracle11 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id, @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 AND ROWNUM <= 1 + c_1."Id" = :Id AND ROWNUM <= 1 BeforeExecute -- Oracle.11.Managed Oracle11 diff --git a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.11.Managed).sql index 6b8338c6fc9..b32b3efc12e 100644 --- a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.11.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.11.Managed Oracle11 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id, @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 AND ROWNUM <= 2 + c_1."Id" = :Id AND ROWNUM <= 2 BeforeExecute -- Oracle.11.Managed Oracle11 diff --git a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.11.Managed).sql index 6b8338c6fc9..b32b3efc12e 100644 --- a/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.11.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.11.Managed Oracle11 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id, @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 AND ROWNUM <= 2 + c_1."Id" = :Id AND ROWNUM <= 2 BeforeExecute -- Oracle.11.Managed Oracle11 diff --git a/Oracle.11.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed).sql index e468260de93..90cc30cc2d4 100644 --- a/Oracle.11.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.11.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.11.Managed Oracle11 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.11.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.11.Managed).sql b/Oracle.11.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.11.Managed).sql index 75c00bb8df5..8c5c9906032 100644 --- a/Oracle.11.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.11.Managed).sql +++ b/Oracle.11.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.11.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.11.Managed Oracle11 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 967ea208c3879c3891a573c9b65094647863bf69 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:11:21 +0000 Subject: [PATCH 23/37] [Linux / PostgreSQL 11] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.11.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.11).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.11).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.11).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.11).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.11).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.11).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11.LinqService).sql b/PostgreSQL.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11.LinqService).sql index 03c11bb6a69..3cfc5717191 100644 --- a/PostgreSQL.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11.LinqService).sql +++ b/PostgreSQL.11.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.11).sql index 6faed62b561..89ec2953c0b 100644 --- a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.11).sql index 6faed62b561..89ec2953c0b 100644 --- a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.11).sql index 46cd8179bc1..16e0c91b1e0 100644 --- a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.11).sql index 46cd8179bc1..16e0c91b1e0 100644 --- a/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.11).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11).sql index 03c11bb6a69..3cfc5717191 100644 --- a/PostgreSQL.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.11).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.11).sql b/PostgreSQL.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.11).sql index f4bbd8d0cad..f2947eb626a 100644 --- a/PostgreSQL.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.11).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.11/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.11).sql b/PostgreSQL.11/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.11).sql index da8c4c162a7..c140f4ef44a 100644 --- a/PostgreSQL.11/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.11).sql +++ b/PostgreSQL.11/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.11).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.11 PostgreSQL.9.5 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From 07c47ef549634289515c98e31ae0e47752ec5150 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:11:25 +0000 Subject: [PATCH 24/37] [Windows / SQL Server 2022] baselines --- ...ncatUnionTests.Concat502(SqlServer.2022.LinqService).sql | 6 +++--- ...tUnionTests.Concat502(SqlServer.2022.MS.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(SqlServer.2022.MS).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(SqlServer.2022.MS).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(SqlServer.2022.MS).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(SqlServer.2022.MS).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(SqlServer.2022.MS).sql | 6 +++--- ...ssue3259Tests.SubqueryAggregation(SqlServer.2022.MS).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(SqlServer.2022).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(SqlServer.2022).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(SqlServer.2022).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(SqlServer.2022).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(SqlServer.2022).sql | 6 +++--- ...s.Issue3259Tests.SubqueryAggregation(SqlServer.2022).sql | 6 +++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/SqlServer.2022.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.LinqService).sql b/SqlServer.2022.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.LinqService).sql index b90ce58e607..785a9d34216 100644 --- a/SqlServer.2022.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.LinqService).sql +++ b/SqlServer.2022.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2022.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS.LinqService).sql b/SqlServer.2022.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS.LinqService).sql index a0676da1ebd..86bf48aa038 100644 --- a/SqlServer.2022.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS.LinqService).sql +++ b/SqlServer.2022.MS.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022.MS).sql index e6baa3565f5..7ee82ad18b9 100644 --- a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022.MS SqlServer.2022 diff --git a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022.MS).sql index e6baa3565f5..7ee82ad18b9 100644 --- a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022.MS SqlServer.2022 diff --git a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022.MS).sql index a71b64c56b8..a1af7a448d1 100644 --- a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022.MS SqlServer.2022 diff --git a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022.MS).sql index a71b64c56b8..a1af7a448d1 100644 --- a/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022.MS).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022.MS SqlServer.2022 diff --git a/SqlServer.2022.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS).sql index a0676da1ebd..86bf48aa038 100644 --- a/SqlServer.2022.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022.MS).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2022.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022.MS).sql index f9de3e85249..b722b13a17a 100644 --- a/SqlServer.2022.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022.MS).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2022.MS SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2022.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022.MS).sql b/SqlServer.2022.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022.MS).sql index 9b59d5ebc47..1ed1d173fc0 100644 --- a/SqlServer.2022.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022.MS).sql +++ b/SqlServer.2022.MS/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022.MS).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2022.MS SqlServer.2022 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC diff --git a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022).sql index 3dae6f70769..2fa02997847 100644 --- a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(SqlServer.2022).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022 diff --git a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022).sql index 3dae6f70769..2fa02997847 100644 --- a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(SqlServer.2022).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (1) @Id, @@ -46,7 +44,7 @@ SELECT TOP (1) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022 diff --git a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022).sql index b4f394005f7..4c0cd425c2f 100644 --- a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(SqlServer.2022).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022 diff --git a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022).sql index b4f394005f7..4c0cd425c2f 100644 --- a/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(SqlServer.2022).sql @@ -37,8 +37,6 @@ BeforeExecute -- SqlServer.2022 (asynchronously) DECLARE @Id Int -- Int32 SET @Id = 2 -DECLARE @Id_1 Int -- Int32 -SET @Id_1 = 2 SELECT TOP (2) @Id, @@ -46,7 +44,7 @@ SELECT TOP (2) FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- SqlServer.2022 diff --git a/SqlServer.2022/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022).sql index b90ce58e607..785a9d34216 100644 --- a/SqlServer.2022/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SqlServer.2022).sql @@ -1,7 +1,7 @@ BeforeExecute -- SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @Value1 Int -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -10,7 +10,7 @@ SELECT FROM ( SELECT - IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @p) as [Value1], + IIF([p_1].[ParentID] IS NOT NULL, [p_1].[Value1], @Value1) as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], [p_1].[Value1] as [Value1_1] diff --git a/SqlServer.2022/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022).sql b/SqlServer.2022/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022).sql index d606bcebf3e..76ac52b9106 100644 --- a/SqlServer.2022/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SqlServer.2022).sql @@ -37,8 +37,8 @@ VALUES BeforeExecute -- SqlServer.2022 -DECLARE @p Int -- Int32 -SET @p = NULL +DECLARE @IntProp Int -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -56,7 +56,7 @@ WHERE END LIKE N'%2' ESCAPE N'~' AND CASE WHEN [x].[StringProp] = N'1' OR [x].[StringProp] IS NULL - THEN @p + THEN @IntProp WHEN [x].[StringProp] = N'2' THEN 1 ELSE 2 END = 2 diff --git a/SqlServer.2022/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022).sql b/SqlServer.2022/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022).sql index f070c146ca5..fbfed8d8c96 100644 --- a/SqlServer.2022/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022).sql +++ b/SqlServer.2022/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(SqlServer.2022).sql @@ -126,7 +126,7 @@ BeforeExecute -- SqlServer.2022 SELECT - [t9].[SUM_1], + [t9].[WithParentReference], [t9].[WithParentReferenceCustom1], [t9].[WithParentReferenceCustom2], [t9].[WithoutParentReference] @@ -156,7 +156,7 @@ FROM [a_Employee].[EmployeeId] = [e].[EmployeeId] ) [d] ON 1=1 ) [t2] - ) as [SUM_1], + ) as [WithParentReference], ( SELECT Sum([t4].[c1]) @@ -234,7 +234,7 @@ FROM INNER JOIN [Employee] [a_Employee] ON [tracking].[EmployeeId] = [a_Employee].[EmployeeId] ) [t9] ORDER BY - Coalesce([t9].[SUM_1], 0), + Coalesce([t9].[WithParentReference], 0), Coalesce([t9].[WithParentReferenceCustom1], 0), Coalesce([t9].[WithParentReferenceCustom2], 0), Coalesce([t9].[WithoutParentReference], 0) DESC From 9d71a5c06b08ce5c3fbd8aabb6bf11c1252c969c Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:11:38 +0200 Subject: [PATCH 25/37] [Linux / Oracle 12c] baselines --- ...tUnionTests.Concat502(Oracle.12.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.12.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.12.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.12.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.12.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.12.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.12.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed.LinqService).sql b/Oracle.12.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed.LinqService).sql index bea4b136c99..c2db3a9c7d2 100644 --- a/Oracle.12.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed.LinqService).sql +++ b/Oracle.12.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.12.Managed).sql index b77538bcf53..12fc1137b6f 100644 --- a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.12.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.12.Managed).sql index b77538bcf53..12fc1137b6f 100644 --- a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.12.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.12.Managed).sql index 518dec387aa..b5bfad7f025 100644 --- a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.12.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.12.Managed).sql index 518dec387aa..b5bfad7f025 100644 --- a/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.12.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.12.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed).sql index bea4b136c99..c2db3a9c7d2 100644 --- a/Oracle.12.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.12.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.12.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.12.Managed).sql b/Oracle.12.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.12.Managed).sql index 7dd91a88320..8a83ea3f79e 100644 --- a/Oracle.12.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.12.Managed).sql +++ b/Oracle.12.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.12.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.12.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 8a330b0b4fba1b1d4f97b637dcb3e700b0b4d7bf Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:12:36 +0000 Subject: [PATCH 26/37] [Linux / PostgreSQL 13] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.13.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.13).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.13).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.13).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.13).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.13).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.13).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.13.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13.LinqService).sql b/PostgreSQL.13.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13.LinqService).sql index 51684088807..b3c60a99885 100644 --- a/PostgreSQL.13.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13.LinqService).sql +++ b/PostgreSQL.13.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.13).sql index b9fe1e1c32f..e98b07be051 100644 --- a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.13).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.13).sql index b9fe1e1c32f..e98b07be051 100644 --- a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.13).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.13).sql index d532b03d8ce..970400545fc 100644 --- a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.13).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.13).sql index d532b03d8ce..970400545fc 100644 --- a/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.13).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.13/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13).sql index 51684088807..b3c60a99885 100644 --- a/PostgreSQL.13/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.13).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.13/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.13).sql b/PostgreSQL.13/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.13).sql index 86d122dc72c..3056a63b304 100644 --- a/PostgreSQL.13/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.13).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.13/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.13).sql b/PostgreSQL.13/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.13).sql index 52749ccc23a..1a227eff220 100644 --- a/PostgreSQL.13/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.13).sql +++ b/PostgreSQL.13/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.13).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.13 PostgreSQL.9.5 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From af998c4dc6badb3229dc329d2821c1b3f1dae10e Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:14:01 +0000 Subject: [PATCH 27/37] [Linux / PostgreSQL 12] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.12.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.12).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.12).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.12).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.12).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.12).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.12).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.12.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12.LinqService).sql b/PostgreSQL.12.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12.LinqService).sql index 2d5a550ee43..fa33e220c33 100644 --- a/PostgreSQL.12.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12.LinqService).sql +++ b/PostgreSQL.12.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.12).sql index 529474eec79..18e122f5caa 100644 --- a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.12).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.12).sql index 529474eec79..18e122f5caa 100644 --- a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.12).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.12).sql index c3746424c80..9f03ea6fc6a 100644 --- a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.12).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.12).sql index c3746424c80..9f03ea6fc6a 100644 --- a/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.12).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.12/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12).sql index 2d5a550ee43..fa33e220c33 100644 --- a/PostgreSQL.12/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.12).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.12/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.12).sql b/PostgreSQL.12/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.12).sql index a721872af7e..d4c2ba80cae 100644 --- a/PostgreSQL.12/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.12).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.12/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.12).sql b/PostgreSQL.12/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.12).sql index e724a27c54e..46c814dcfd0 100644 --- a/PostgreSQL.12/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.12).sql +++ b/PostgreSQL.12/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.12).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.12 PostgreSQL.9.5 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From 07175551dd6e1b232ac4b4ab91ef5ac4f17e5f4f Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:14:22 +0200 Subject: [PATCH 28/37] [Linux / Oracle 21c] baselines --- ...tUnionTests.Concat502(Oracle.21.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.21.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.21.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.21.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.21.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.21.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.21.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed.LinqService).sql b/Oracle.21.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed.LinqService).sql index 0f6fde29ceb..b9bfcc228c3 100644 --- a/Oracle.21.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed.LinqService).sql +++ b/Oracle.21.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.21.Managed).sql index e54fe8d5009..dcd1fd89a27 100644 --- a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.21.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.21.Managed).sql index e54fe8d5009..dcd1fd89a27 100644 --- a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.21.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.21.Managed).sql index cba01d1bf4e..7936f9d8a0b 100644 --- a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.21.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.21.Managed).sql index cba01d1bf4e..7936f9d8a0b 100644 --- a/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.21.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.21.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed).sql index 0f6fde29ceb..b9bfcc228c3 100644 --- a/Oracle.21.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.21.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.21.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.21.Managed).sql b/Oracle.21.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.21.Managed).sql index 91d865cdef9..b358774a957 100644 --- a/Oracle.21.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.21.Managed).sql +++ b/Oracle.21.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.21.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.21.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From d7e080065fe80223b2737744b336c27f581e89bb Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:18:11 +0200 Subject: [PATCH 29/37] [Linux / Oracle 18c] baselines --- ...tUnionTests.Concat502(Oracle.18.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.18.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.18.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.18.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.18.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.18.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.18.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed.LinqService).sql b/Oracle.18.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed.LinqService).sql index f87876caef4..b7328eab15a 100644 --- a/Oracle.18.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed.LinqService).sql +++ b/Oracle.18.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.18.Managed).sql index c21fabcaf34..2f4d87ecad3 100644 --- a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.18.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.18.Managed).sql index c21fabcaf34..2f4d87ecad3 100644 --- a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.18.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.18.Managed).sql index 9c372898560..818222c3f20 100644 --- a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.18.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.18.Managed).sql index 9c372898560..818222c3f20 100644 --- a/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.18.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.18.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed).sql index f87876caef4..b7328eab15a 100644 --- a/Oracle.18.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.18.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.18.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.18.Managed).sql b/Oracle.18.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.18.Managed).sql index 727a45db537..986f6834a03 100644 --- a/Oracle.18.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.18.Managed).sql +++ b/Oracle.18.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.18.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.18.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 5a57c783e1b821e3bf10c8cad9d04a93518fd345 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:18:13 +0000 Subject: [PATCH 30/37] [Linux / PostgreSQL 14] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.14.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.14).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.14).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.14).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.14).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.14).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.14).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.14.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14.LinqService).sql b/PostgreSQL.14.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14.LinqService).sql index 55e268b1a88..061e1b0b527 100644 --- a/PostgreSQL.14.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14.LinqService).sql +++ b/PostgreSQL.14.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.14).sql index 41d20044659..cc00b405813 100644 --- a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.14).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.14).sql index 41d20044659..cc00b405813 100644 --- a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.14).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.14).sql index b553278ced7..ea25c71fff8 100644 --- a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.14).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.14).sql index b553278ced7..ea25c71fff8 100644 --- a/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.14).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.14/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14).sql index 55e268b1a88..061e1b0b527 100644 --- a/PostgreSQL.14/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.14).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.14/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.14).sql b/PostgreSQL.14/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.14).sql index 5e5318b7322..6f5587d4f55 100644 --- a/PostgreSQL.14/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.14).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.14/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.14).sql b/PostgreSQL.14/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.14).sql index a903e6bb50b..777053a7118 100644 --- a/PostgreSQL.14/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.14).sql +++ b/PostgreSQL.14/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.14).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.14 PostgreSQL.9.5 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From 63680f0dd6d99b1141cd8fb413d93ba330c4b1c0 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:20:01 +0000 Subject: [PATCH 31/37] [Linux / PostgreSQL 15] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.15.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.15).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.15).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.15).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.15).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.15).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.15).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.15.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15.LinqService).sql b/PostgreSQL.15.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15.LinqService).sql index 915ccdefb75..23b2ba2fdcf 100644 --- a/PostgreSQL.15.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15.LinqService).sql +++ b/PostgreSQL.15.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.15).sql index e467f3c7cfb..8fcc25c4b7b 100644 --- a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.15).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.15).sql index e467f3c7cfb..8fcc25c4b7b 100644 --- a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.15).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.15).sql index 0250648d20e..7b5d38ea8ad 100644 --- a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.15).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.15).sql index 0250648d20e..7b5d38ea8ad 100644 --- a/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.15).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.15/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15).sql index 915ccdefb75..23b2ba2fdcf 100644 --- a/PostgreSQL.15/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.15).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.15/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.15).sql b/PostgreSQL.15/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.15).sql index 92bf0abcb26..9ac3ddeeeb1 100644 --- a/PostgreSQL.15/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.15).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.15/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.15).sql b/PostgreSQL.15/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.15).sql index 52508ac75d5..c07757e58b8 100644 --- a/PostgreSQL.15/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.15).sql +++ b/PostgreSQL.15/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.15).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.15 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From a6d685ff525bbf07680b309ba93b41ef985a12bb Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:21:18 +0000 Subject: [PATCH 32/37] [Linux / PostgreSQL 16] baselines --- ...oncatUnionTests.Concat502(PostgreSQL.16.LinqService).sql | 6 +++--- ...stsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.16).sql | 4 +--- ...CompileTestsAsync.FirstPredicateAsync(PostgreSQL.16).sql | 4 +--- ...tsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.16).sql | 4 +--- ...ompileTestsAsync.SinglePredicateAsync(PostgreSQL.16).sql | 4 +--- ...Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16).sql | 6 +++--- ...inq.ConditionalTests.ViaConditionDeep(PostgreSQL.16).sql | 6 +++--- ...ts.Issue3259Tests.SubqueryAggregation(PostgreSQL.16).sql | 6 +++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/PostgreSQL.16.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16.LinqService).sql b/PostgreSQL.16.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16.LinqService).sql index e670b006be5..ee35563325b 100644 --- a/PostgreSQL.16.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16.LinqService).sql +++ b/PostgreSQL.16.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.16).sql index 3042018b229..be5b64714c0 100644 --- a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(PostgreSQL.16).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.16).sql index 3042018b229..be5b64714c0 100644 --- a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(PostgreSQL.16).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 1 BeforeExecute diff --git a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.16).sql index a25aaae1d88..19c1ef1d9d7 100644 --- a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(PostgreSQL.16).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.16).sql index a25aaae1d88..19c1ef1d9d7 100644 --- a/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(PostgreSQL.16).sql @@ -36,8 +36,6 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT :Id, @@ -45,7 +43,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id LIMIT 2 BeforeExecute diff --git a/PostgreSQL.16/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16).sql index e670b006be5..ee35563325b 100644 --- a/PostgreSQL.16/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(PostgreSQL.16).sql @@ -1,7 +1,7 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/PostgreSQL.16/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.16).sql b/PostgreSQL.16/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.16).sql index 22cfeae56d0..de34d50ee88 100644 --- a/PostgreSQL.16/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(PostgreSQL.16).sql @@ -36,8 +36,8 @@ VALUES BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT x."Id", @@ -56,7 +56,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 diff --git a/PostgreSQL.16/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.16).sql b/PostgreSQL.16/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.16).sql index 1935b80de16..d0b98c84545 100644 --- a/PostgreSQL.16/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.16).sql +++ b/PostgreSQL.16/Tests/UserTests/Issue3259Tests/Tests.UserTests.Issue3259Tests.SubqueryAggregation(PostgreSQL.16).sql @@ -122,7 +122,7 @@ BeforeExecute -- PostgreSQL.16 PostgreSQL.15 PostgreSQL SELECT - t5."SUM_1", + t5."WithParentReference", t5."WithParentReferenceCustom1", t5."WithParentReferenceCustom2", t5."WithoutParentReference" @@ -153,7 +153,7 @@ FROM WHERE "a_Employee"."EmployeeId" = e."EmployeeId" ) d ON 1=1 - ) as "SUM_1", + ) as "WithParentReference", ( SELECT Sum(CASE @@ -235,7 +235,7 @@ FROM INNER JOIN "Employee" "a_Employee" ON tracking."EmployeeId" = "a_Employee"."EmployeeId" ) t5 ORDER BY - Coalesce(t5."SUM_1", 0), + Coalesce(t5."WithParentReference", 0), Coalesce(t5."WithParentReferenceCustom1", 0), Coalesce(t5."WithParentReferenceCustom2", 0), Coalesce(t5."WithoutParentReference", 0) DESC From 574a55aba6945bdc83c192dba1c70be4f5faf41e Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:21:32 +0200 Subject: [PATCH 33/37] [Linux / Oracle 19c] baselines --- ...tUnionTests.Concat502(Oracle.19.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.19.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.19.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.19.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.19.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.19.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.19.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed.LinqService).sql b/Oracle.19.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed.LinqService).sql index 9a45d1b57a4..5acdbb5149f 100644 --- a/Oracle.19.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed.LinqService).sql +++ b/Oracle.19.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.19.Managed).sql index 65db3c2f980..2e1ad3a3e42 100644 --- a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.19.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.19.Managed).sql index 65db3c2f980..2e1ad3a3e42 100644 --- a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.19.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.19.Managed).sql index 80cf168c760..8a966941ace 100644 --- a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.19.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.19.Managed).sql index 80cf168c760..8a966941ace 100644 --- a/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.19.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.19.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed).sql index 9a45d1b57a4..5acdbb5149f 100644 --- a/Oracle.19.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.19.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.19.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.19.Managed).sql b/Oracle.19.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.19.Managed).sql index 6312bd38229..f4f17980969 100644 --- a/Oracle.19.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.19.Managed).sql +++ b/Oracle.19.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.19.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.19.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From b7821ca9d4cc202c95158db203ee6112f78a0774 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 23:27:50 +0200 Subject: [PATCH 34/37] [Linux / Oracle 23c] baselines --- ...tUnionTests.Concat502(Oracle.23.Managed.LinqService).sql | 6 +++--- ...sync.FirstOrDefaultPredicateAsync(Oracle.23.Managed).sql | 4 +--- ...ileTestsAsync.FirstPredicateAsync(Oracle.23.Managed).sql | 4 +--- ...ync.SingleOrDefaultPredicateAsync(Oracle.23.Managed).sql | 4 +--- ...leTestsAsync.SinglePredicateAsync(Oracle.23.Managed).sql | 4 +--- ...s.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed).sql | 6 +++--- ...ConditionalTests.ViaConditionDeep(Oracle.23.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Oracle.23.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed.LinqService).sql b/Oracle.23.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed.LinqService).sql index 0b82dc5907b..79355d5d7fa 100644 --- a/Oracle.23.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed.LinqService).sql +++ b/Oracle.23.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.23.Managed).sql index 2f55c00b409..c383cef128e 100644 --- a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Oracle.23.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.23.Managed).sql index 2f55c00b409..c383cef128e 100644 --- a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Oracle.23.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 1 ROWS ONLY BeforeExecute diff --git a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.23.Managed).sql index e6d3ae4d224..535e35b6535 100644 --- a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Oracle.23.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.23.Managed).sql index e6d3ae4d224..535e35b6535 100644 --- a/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Oracle.23.Managed).sql @@ -49,8 +49,6 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 (asynchronously) DECLARE @Id Int32 SET @Id = 2 -DECLARE @Id_1 Int32 -SET @Id_1 = 2 SELECT :Id as "Id", @@ -58,7 +56,7 @@ SELECT FROM "AsyncDataTable" c_1 WHERE - c_1."Id" = :Id_1 + c_1."Id" = :Id FETCH NEXT 2 ROWS ONLY BeforeExecute diff --git a/Oracle.23.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed).sql index 0b82dc5907b..79355d5d7fa 100644 --- a/Oracle.23.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Oracle.23.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @Value1 Int32 +SET @Value1 = NULL SELECT p_2."ParentID", @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN p_1."ParentID" IS NOT NULL THEN p_1."Value1" - ELSE :p + ELSE :Value1 END as "Value1", p_1."ParentID", p_1."ParentID_1", diff --git a/Oracle.23.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.23.Managed).sql b/Oracle.23.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.23.Managed).sql index d79a1e255a7..26724cfe833 100644 --- a/Oracle.23.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.23.Managed).sql +++ b/Oracle.23.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Oracle.23.Managed).sql @@ -48,8 +48,8 @@ SELECT * FROM dual BeforeExecute -- Oracle.23.Managed Oracle.Managed Oracle12 -DECLARE @p Int32 -SET @p = NULL +DECLARE @IntProp Int32 +SET @IntProp = NULL SELECT x."Id", @@ -68,7 +68,7 @@ WHERE ELSE x."StringProp" || '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :p + WHEN x."StringProp" = '1' OR x."StringProp" IS NULL THEN :IntProp WHEN x."StringProp" = '2' THEN 1 ELSE 2 END = 2 From 0497326adf4eec3df760a22cd2badc899f88e48e Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:39:50 +0000 Subject: [PATCH 35/37] [Linux / SQL Server 2019] baselines --- ....Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql b/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql index 9e483037c8d..76251f8c9c4 100644 --- a/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql +++ b/SqlServer.SA.LinqService/Tests/Linq/ParameterTests/Tests.Linq.ParameterTests.Caching(SqlServer.SA.LinqService).sql @@ -2,6 +2,8 @@ -- SqlServer.SA SqlServer.2019 DECLARE @ParentID Int -- Int32 SET @ParentID = 1 +DECLARE @ParentID_1 Int -- Int32 +SET @ParentID_1 = 1 SELECT [x].[ParentID], @@ -9,7 +11,7 @@ SELECT FROM [Parent] [x] WHERE - ([x].[ParentID] = @ParentID OR [x].[ParentID] = @ParentID) + ([x].[ParentID] = @ParentID OR [x].[ParentID] = @ParentID_1) BeforeExecute -- SqlServer.SA SqlServer.2019 From 863243587ae6094ee1bf30efb24e0f00b7ae8370 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 21:43:54 +0000 Subject: [PATCH 36/37] [Linux / Sybase ASE 16] baselines --- ...ncatUnionTests.Concat502(Sybase.Managed.LinqService).sql | 6 +++--- ...tsAsync.FirstOrDefaultPredicateAsync(Sybase.Managed).sql | 4 +--- ...ompileTestsAsync.FirstPredicateAsync(Sybase.Managed).sql | 4 +--- ...sAsync.SingleOrDefaultPredicateAsync(Sybase.Managed).sql | 4 +--- ...mpileTestsAsync.SinglePredicateAsync(Sybase.Managed).sql | 4 +--- ...ests.Linq.ConcatUnionTests.Concat502(Sybase.Managed).sql | 6 +++--- ...nq.ConditionalTests.ViaConditionDeep(Sybase.Managed).sql | 6 +++--- 7 files changed, 13 insertions(+), 21 deletions(-) diff --git a/Sybase.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed.LinqService).sql b/Sybase.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed.LinqService).sql index 69fc0e8f728..e917b9fa1af 100644 --- a/Sybase.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed.LinqService).sql +++ b/Sybase.Managed.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- Sybase.Managed Sybase -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Sybase.Managed).sql index ca1883076a7..c4c5954bc24 100644 --- a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstOrDefaultPredicateAsync(Sybase.Managed).sql @@ -39,8 +39,6 @@ BeforeExecute -- Sybase.Managed Sybase (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT TOP 1 @Id, @@ -48,7 +46,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- Sybase.Managed Sybase diff --git a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Sybase.Managed).sql index ca1883076a7..c4c5954bc24 100644 --- a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.FirstPredicateAsync(Sybase.Managed).sql @@ -39,8 +39,6 @@ BeforeExecute -- Sybase.Managed Sybase (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT TOP 1 @Id, @@ -48,7 +46,7 @@ SELECT TOP 1 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- Sybase.Managed Sybase diff --git a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Sybase.Managed).sql index f482c697ef6..2dca60859ef 100644 --- a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SingleOrDefaultPredicateAsync(Sybase.Managed).sql @@ -39,8 +39,6 @@ BeforeExecute -- Sybase.Managed Sybase (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT TOP 2 @Id, @@ -48,7 +46,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- Sybase.Managed Sybase diff --git a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Sybase.Managed).sql index f482c697ef6..2dca60859ef 100644 --- a/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/CompileTestsAsync/Tests.Linq.CompileTestsAsync.SinglePredicateAsync(Sybase.Managed).sql @@ -39,8 +39,6 @@ BeforeExecute -- Sybase.Managed Sybase (asynchronously) DECLARE @Id Integer -- Int32 SET @Id = 2 -DECLARE @Id_1 Integer -- Int32 -SET @Id_1 = 2 SELECT TOP 2 @Id, @@ -48,7 +46,7 @@ SELECT TOP 2 FROM [AsyncDataTable] [c_1] WHERE - [c_1].[Id] = @Id_1 + [c_1].[Id] = @Id BeforeExecute -- Sybase.Managed Sybase diff --git a/Sybase.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed).sql index 69fc0e8f728..e917b9fa1af 100644 --- a/Sybase.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(Sybase.Managed).sql @@ -1,7 +1,7 @@ BeforeExecute -- Sybase.Managed Sybase -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @Value1 Integer -- Int32 +SET @Value1 = NULL SELECT [p_2].[ParentID], @@ -12,7 +12,7 @@ FROM SELECT CASE WHEN [p_1].[ParentID] IS NOT NULL THEN [p_1].[Value1] - ELSE @p + ELSE @Value1 END as [Value1], [p_1].[ParentID], [p_1].[ParentID_1], diff --git a/Sybase.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Sybase.Managed).sql b/Sybase.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Sybase.Managed).sql index 3151d939dd6..4b948244232 100644 --- a/Sybase.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Sybase.Managed).sql +++ b/Sybase.Managed/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(Sybase.Managed).sql @@ -39,8 +39,8 @@ SELECT 10,'String10' BeforeExecute -- Sybase.Managed Sybase -DECLARE @p Integer -- Int32 -SET @p = NULL +DECLARE @IntProp Integer -- Int32 +SET @IntProp = NULL SELECT [x].[Id], @@ -59,7 +59,7 @@ WHERE ELSE [x].[StringProp] + '2' END LIKE '%2' ESCAPE '~' AND CASE - WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @p + WHEN [x].[StringProp] = '1' OR [x].[StringProp] IS NULL THEN @IntProp WHEN [x].[StringProp] = '2' THEN 1 ELSE 2 END = 2 From f2f16b6e559085029d2342a900687c4f06d34d41 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Bot Date: Sun, 16 Jun 2024 22:08:41 +0000 Subject: [PATCH 37/37] [Linux / SAP HANA 2] baselines --- ...q.ConcatUnionTests.Concat502(SapHana.Odbc.LinqService).sql | 4 ++-- .../Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc).sql | 4 ++-- ...s.Linq.ConditionalTests.ViaConditionDeep(SapHana.Odbc).sql | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SapHana.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc.LinqService).sql b/SapHana.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc.LinqService).sql index efc03a85855..2c0a18bea4b 100644 --- a/SapHana.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc.LinqService).sql +++ b/SapHana.Odbc.LinqService/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc.LinqService).sql @@ -1,7 +1,7 @@ BeforeExecute -- SapHana.Odbc SapHanaOdbc -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", diff --git a/SapHana.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc).sql b/SapHana.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc).sql index efc03a85855..2c0a18bea4b 100644 --- a/SapHana.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc).sql +++ b/SapHana.Odbc/Tests/Linq/ConcatUnionTests/Tests.Linq.ConcatUnionTests.Concat502(SapHana.Odbc).sql @@ -1,7 +1,7 @@ BeforeExecute -- SapHana.Odbc SapHanaOdbc -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @Value1 -- Int32 +SET @Value1 = NULL SELECT "p_2"."ParentID", diff --git a/SapHana.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SapHana.Odbc).sql b/SapHana.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SapHana.Odbc).sql index fd26d876bb2..d54ed64e121 100644 --- a/SapHana.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SapHana.Odbc).sql +++ b/SapHana.Odbc/Tests/Linq/ConditionalTests/Tests.Linq.ConditionalTests.ViaConditionDeep(SapHana.Odbc).sql @@ -196,8 +196,8 @@ VALUES BeforeExecute -- SapHana.Odbc SapHanaOdbc -DECLARE @p -- Int32 -SET @p = NULL +DECLARE @IntProp -- Int32 +SET @IntProp = NULL SELECT "x"."Id",