Skip to content

Commit 5c38fb2

Browse files
committed
Update baselines
1 parent 7df1df6 commit 5c38fb2

File tree

52 files changed

+539
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+539
-539
lines changed

test/EFCore.SqlServer.FunctionalTests/BulkUpdates/NonSharedModelBulkUpdatesSqlServerTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public override async Task Update_non_owned_property_on_entity_with_owned2(bool
9898
AssertSql(
9999
"""
100100
UPDATE [o]
101-
SET [o].[Title] = COALESCE([o].[Title], N'') + N'_Suffix'
101+
SET [o].[Title] = ISNULL(CAST([o].[Title] AS nvarchar(max)), N'') + N'_Suffix'
102102
FROM [Owner] AS [o]
103103
""");
104104
}
@@ -125,7 +125,7 @@ public override async Task Update_owned_and_non_owned_properties_with_table_shar
125125
AssertSql(
126126
"""
127127
UPDATE [o]
128-
SET [o].[Title] = COALESCE(CONVERT(varchar(11), [o].[OwnedReference_Number]), ''),
128+
SET [o].[Title] = ISNULL(CAST(CONVERT(varchar(11), [o].[OwnedReference_Number]) AS varchar(8000)), ''),
129129
[o].[OwnedReference_Number] = CAST(LEN([o].[Title]) AS int)
130130
FROM [Owner] AS [o]
131131
""");
@@ -190,7 +190,7 @@ public override async Task Update_with_alias_uniquification_in_setter_subquery(b
190190
"""
191191
UPDATE [o]
192192
SET [o].[Total] = (
193-
SELECT COALESCE(SUM([o0].[Amount]), 0)
193+
SELECT ISNULL(SUM([o0].[Amount]), 0)
194194
FROM [OrderProduct] AS [o0]
195195
WHERE [o].[Id] = [o0].[OrderId])
196196
FROM [Orders] AS [o]

test/EFCore.SqlServer.FunctionalTests/BulkUpdates/NorthwindBulkUpdatesSqlServerTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ public override async Task Update_Where_set_property_plus_constant(bool async)
11241124
AssertExecuteUpdateSql(
11251125
"""
11261126
UPDATE [c]
1127-
SET [c].[ContactName] = COALESCE([c].[ContactName], N'') + N'Abc'
1127+
SET [c].[ContactName] = ISNULL(CAST([c].[ContactName] AS nvarchar(4000)), N'') + N'Abc'
11281128
FROM [Customers] AS [c]
11291129
WHERE [c].[CustomerID] LIKE N'F%'
11301130
""");
@@ -1139,7 +1139,7 @@ public override async Task Update_Where_set_property_plus_parameter(bool async)
11391139
@value='Abc' (Size = 4000)
11401140
11411141
UPDATE [c]
1142-
SET [c].[ContactName] = COALESCE([c].[ContactName], N'') + @value
1142+
SET [c].[ContactName] = ISNULL(CAST([c].[ContactName] AS nvarchar(4000)), N'') + @value
11431143
FROM [Customers] AS [c]
11441144
WHERE [c].[CustomerID] LIKE N'F%'
11451145
""");
@@ -1152,7 +1152,7 @@ public override async Task Update_Where_set_property_plus_property(bool async)
11521152
AssertExecuteUpdateSql(
11531153
"""
11541154
UPDATE [c]
1155-
SET [c].[ContactName] = COALESCE([c].[ContactName], N'') + [c].[CustomerID]
1155+
SET [c].[ContactName] = ISNULL(CAST([c].[ContactName] AS nvarchar(4000)), N'') + [c].[CustomerID]
11561156
FROM [Customers] AS [c]
11571157
WHERE [c].[CustomerID] LIKE N'F%'
11581158
""");
@@ -1574,11 +1574,11 @@ public override async Task Update_Where_Join_set_property_from_joined_single_res
15741574
AssertExecuteUpdateSql(
15751575
"""
15761576
UPDATE [c]
1577-
SET [c].[City] = COALESCE(CONVERT(varchar(11), DATEPART(year, (
1577+
SET [c].[City] = ISNULL(CAST(CONVERT(varchar(11), DATEPART(year, (
15781578
SELECT TOP(1) [o].[OrderDate]
15791579
FROM [Orders] AS [o]
15801580
WHERE [c].[CustomerID] = [o].[CustomerID]
1581-
ORDER BY [o].[OrderDate] DESC))), '')
1581+
ORDER BY [o].[OrderDate] DESC))) AS varchar(8000)), '')
15821582
FROM [Customers] AS [c]
15831583
WHERE [c].[CustomerID] LIKE N'F%'
15841584
""");
@@ -1609,11 +1609,11 @@ public override async Task Update_Where_Join_set_property_from_joined_single_res
16091609
AssertExecuteUpdateSql(
16101610
"""
16111611
UPDATE [c]
1612-
SET [c].[City] = COALESCE(CONVERT(varchar(11), DATEPART(year, (
1612+
SET [c].[City] = ISNULL(CAST(CONVERT(varchar(11), DATEPART(year, (
16131613
SELECT TOP(1) [o].[OrderDate]
16141614
FROM [Orders] AS [o]
16151615
WHERE [c].[CustomerID] = [o].[CustomerID]
1616-
ORDER BY [o].[OrderDate] DESC))), '')
1616+
ORDER BY [o].[OrderDate] DESC))) AS varchar(8000)), '')
16171617
FROM [Customers] AS [c]
16181618
WHERE [c].[CustomerID] LIKE N'F%'
16191619
""");

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,7 +2356,7 @@ public override async Task Enum_with_value_converter_matching_take_value(bool as
23562356
@orderItemType='MyType1' (Nullable = false) (Size = 4000)
23572357
@p='1'
23582358
2359-
SELECT [o1].[Id], COALESCE((
2359+
SELECT [o1].[Id], ISNULL((
23602360
SELECT TOP(1) [o3].[Price]
23612361
FROM [OrderItems] AS [o3]
23622362
WHERE [o1].[Id] = [o3].[OrderId] AND [o3].[Type] = @orderItemType), 0.0E0) AS [SpecialSum]
@@ -2438,8 +2438,8 @@ public override async Task Group_by_aggregate_in_subquery_projection_after_group
24382438

24392439
AssertSql(
24402440
"""
2441-
SELECT [t].[Value] AS [A], COALESCE(SUM([t].[Id]), 0) AS [B], COALESCE((
2442-
SELECT TOP(1) COALESCE(SUM([t].[Id]), 0) + COALESCE(SUM([t0].[Id]), 0)
2441+
SELECT [t].[Value] AS [A], ISNULL(SUM([t].[Id]), 0) AS [B], ISNULL((
2442+
SELECT TOP(1) ISNULL(SUM([t].[Id]), 0) + ISNULL(SUM([t0].[Id]), 0)
24432443
FROM [Tables] AS [t0]
24442444
GROUP BY [t0].[Value]
24452445
ORDER BY (SELECT 1)), 0) AS [C]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,14 @@ FROM [CompetitionSeasons] AS [c1]
337337
SELECT [a].[Id], [a].[ActivityTypeId], [a].[DateTime], [a].[Points], (
338338
SELECT TOP(1) [c].[Id]
339339
FROM [CompetitionSeasons] AS [c]
340-
WHERE [c].[StartDate] <= [a].[DateTime] AND [a].[DateTime] < [c].[EndDate]) AS [CompetitionSeasonId], COALESCE([a].[Points], (
340+
WHERE [c].[StartDate] <= [a].[DateTime] AND [a].[DateTime] < [c].[EndDate]) AS [CompetitionSeasonId], ISNULL(ISNULL([a].[Points], (
341341
SELECT TOP(1) [a1].[Points]
342342
FROM [ActivityTypePoints] AS [a1]
343343
INNER JOIN [CompetitionSeasons] AS [c0] ON [a1].[CompetitionSeasonId] = [c0].[Id]
344344
WHERE [a0].[Id] = [a1].[ActivityTypeId] AND [c0].[Id] = (
345345
SELECT TOP(1) [c1].[Id]
346346
FROM [CompetitionSeasons] AS [c1]
347-
WHERE [c1].[StartDate] <= [a].[DateTime] AND [a].[DateTime] < [c1].[EndDate])), 0) AS [Points]
347+
WHERE [c1].[StartDate] <= [a].[DateTime] AND [a].[DateTime] < [c1].[EndDate]))), 0) AS [Points]
348348
FROM [Activities] AS [a]
349349
INNER JOIN [ActivityType] AS [a0] ON [a].[ActivityTypeId] = [a0].[Id]
350350
""");

test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonCollectionSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public override async Task GroupBy()
306306
SELECT [r].[Id], [r].[Name], [r].[AssociateCollection], [r].[OptionalAssociate], [r].[RequiredAssociate]
307307
FROM [RootEntity] AS [r]
308308
WHERE 16 IN (
309-
SELECT COALESCE(SUM([a].[Int]), 0)
309+
SELECT ISNULL(SUM([a].[Int]), 0)
310310
FROM OPENJSON([r].[AssociateCollection], '$') WITH (
311311
[Int] int '$.Int',
312312
[String] nvarchar(max) '$.String'
@@ -341,7 +341,7 @@ FROM [RootEntity] AS [r]
341341
AssertSql(
342342
"""
343343
SELECT (
344-
SELECT COALESCE(SUM([s].[value]), 0)
344+
SELECT ISNULL(SUM([s].[value]), 0)
345345
FROM OPENJSON([r].[AssociateCollection], '$') WITH ([NestedCollection] nvarchar(max) '$.NestedCollection' AS JSON) AS [a]
346346
OUTER APPLY (
347347
SELECT MAX([n].[Int]) AS [value]

test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonPrimitiveCollectionSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public override async Task Select_Sum()
9595
AssertSql(
9696
"""
9797
SELECT (
98-
SELECT COALESCE(SUM([i0].[value]), 0)
98+
SELECT ISNULL(SUM([i0].[value]), 0)
9999
FROM OPENJSON(JSON_QUERY([r].[RequiredAssociate], '$.Ints')) WITH ([value] int '$') AS [i0])
100100
FROM [RootEntity] AS [r]
101101
WHERE (
102-
SELECT COALESCE(SUM([i].[value]), 0)
102+
SELECT ISNULL(SUM([i].[value]), 0)
103103
FROM OPENJSON(JSON_QUERY([r].[RequiredAssociate], '$.Ints')) WITH ([value] int '$') AS [i]) >= 6
104104
""");
105105
}

test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonSetOperationsSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ FROM [RootEntity] AS [r]
7272
AssertSql(
7373
"""
7474
SELECT (
75-
SELECT COALESCE(SUM([s].[value]), 0)
75+
SELECT ISNULL(SUM([s].[value]), 0)
7676
FROM (
7777
SELECT [a].[NestedCollection] AS [NestedCollection]
7878
FROM OPENJSON([r].[AssociateCollection], '$') WITH (
@@ -89,7 +89,7 @@ [NestedCollection] nvarchar(max) '$.NestedCollection' AS JSON
8989
WHERE [a0].[String] = N'foo'
9090
) AS [u]
9191
OUTER APPLY (
92-
SELECT COALESCE(SUM([n].[Int]), 0) AS [value]
92+
SELECT ISNULL(SUM([n].[Int]), 0) AS [value]
9393
FROM OPENJSON([u].[NestedCollection], '$') WITH ([Int] int '$.Int') AS [n]
9494
) AS [s])
9595
FROM [RootEntity] AS [r]

test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexTableSplitting/ComplexTableSplittingPrimitiveCollectionSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ public override async Task Select_Sum()
8585
AssertSql(
8686
"""
8787
SELECT (
88-
SELECT COALESCE(SUM([r1].[value]), 0)
88+
SELECT ISNULL(SUM([r1].[value]), 0)
8989
FROM OPENJSON([r].[RequiredAssociate_Ints]) WITH ([value] int '$') AS [r1])
9090
FROM [RootEntity] AS [r]
9191
WHERE (
92-
SELECT COALESCE(SUM([r0].[value]), 0)
92+
SELECT ISNULL(SUM([r0].[value]), 0)
9393
FROM OPENJSON([r].[RequiredAssociate_Ints]) WITH ([value] int '$') AS [r0]) >= 6
9494
""");
9595
}

test/EFCore.SqlServer.FunctionalTests/Query/Associations/Navigations/NavigationsCollectionSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ FROM [AssociateType] AS [a2]
242242
LEFT JOIN [NestedAssociateType] AS [n6] ON [a0].[Id] = [n6].[CollectionAssociateId]
243243
LEFT JOIN [NestedAssociateType] AS [n7] ON [a1].[Id] = [n7].[CollectionAssociateId]
244244
WHERE 16 IN (
245-
SELECT COALESCE(SUM([a].[Int]), 0)
245+
SELECT ISNULL(SUM([a].[Int]), 0)
246246
FROM [AssociateType] AS [a]
247247
WHERE [r].[Id] = [a].[CollectionRootId]
248248
GROUP BY [a].[String]
@@ -260,7 +260,7 @@ public override async Task Select_within_Select_within_Select_with_aggregates()
260260
AssertSql(
261261
"""
262262
SELECT (
263-
SELECT COALESCE(SUM([s].[value]), 0)
263+
SELECT ISNULL(SUM([s].[value]), 0)
264264
FROM [AssociateType] AS [a]
265265
OUTER APPLY (
266266
SELECT MAX([n].[Int]) AS [value]

test/EFCore.SqlServer.FunctionalTests/Query/Associations/Navigations/NavigationsPrimitiveCollectionSqlServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ public override async Task Select_Sum()
163163
AssertSql(
164164
"""
165165
SELECT (
166-
SELECT COALESCE(SUM([i0].[value]), 0)
166+
SELECT ISNULL(SUM([i0].[value]), 0)
167167
FROM OPENJSON([a].[Ints]) WITH ([value] int '$') AS [i0])
168168
FROM [RootEntity] AS [r]
169169
INNER JOIN [AssociateType] AS [a] ON [r].[RequiredAssociateId] = [a].[Id]
170170
WHERE (
171-
SELECT COALESCE(SUM([i].[value]), 0)
171+
SELECT ISNULL(SUM([i].[value]), 0)
172172
FROM OPENJSON([a].[Ints]) WITH ([value] int '$') AS [i]) >= 6
173173
""");
174174
}

0 commit comments

Comments
 (0)