Skip to content

Commit

Permalink
Update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
ranma42 committed Jun 24, 2024
1 parent 65b5a41 commit 83d10f6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1676,10 +1676,7 @@ public override async Task Conditional_expression_with_conditions_does_not_colla
AssertSql(
"""
SELECT CASE
WHEN [c0].[Id] IS NOT NULL THEN CASE
WHEN [c0].[Processed] = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END
WHEN [c0].[Id] IS NOT NULL THEN [c0].[Processed] ^ CAST(1 AS bit)
ELSE NULL
END AS [Processing]
FROM [Carts] AS [c]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,7 @@ public override async Task Select_inverted_boolean(bool async)

AssertSql(
"""
SELECT [w].[Id], CASE
WHEN [w].[IsAutomatic] = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [Manual]
SELECT [w].[Id], [w].[IsAutomatic] ^ CAST(1 AS bit) AS [Manual]
FROM [Weapons] AS [w]
WHERE [w].[IsAutomatic] = CAST(1 AS bit)
""");
Expand Down Expand Up @@ -5168,12 +5165,9 @@ public override async Task Negated_bool_ternary_inside_anonymous_type_in_project
AssertSql(
"""
SELECT CASE
WHEN CASE
WHEN [g].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([g].[HasSoulPatch], CAST(1 AS bit))
END = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [c]
WHEN [g].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([g].[HasSoulPatch], CAST(1 AS bit))
END ^ CAST(1 AS bit) AS [c]
FROM [Tags] AS [t]
LEFT JOIN [Gears] AS [g] ON [t].[GearNickName] = [g].[Nickname] AND [t].[GearSquadId] = [g].[SquadId]
""");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2344,10 +2344,7 @@ public override async Task Json_boolean_projection_negated(bool async)

AssertSql(
"""
SELECT CASE
WHEN CAST(JSON_VALUE([j].[Reference], '$.TestBoolean') AS bit) = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END
SELECT CAST(JSON_VALUE([j].[Reference], '$.TestBoolean') AS bit) ^ CAST(1 AS bit)
FROM [JsonEntitiesAllTypes] AS [j]
""");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,7 @@ public override async Task Select_inverted_boolean(bool async)

AssertSql(
"""
SELECT [w].[Id], CASE
WHEN [w].[IsAutomatic] = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [Manual]
SELECT [w].[Id], [w].[IsAutomatic] ^ CAST(1 AS bit) AS [Manual]
FROM [Weapons] AS [w]
WHERE [w].[IsAutomatic] = CAST(1 AS bit)
""");
Expand Down Expand Up @@ -7050,12 +7047,9 @@ public override async Task Negated_bool_ternary_inside_anonymous_type_in_project
AssertSql(
"""
SELECT CASE
WHEN CASE
WHEN [u].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([u].[HasSoulPatch], CAST(1 AS bit))
END = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [c]
WHEN [u].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([u].[HasSoulPatch], CAST(1 AS bit))
END ^ CAST(1 AS bit) AS [c]
FROM [Tags] AS [t]
LEFT JOIN (
SELECT [g].[Nickname], [g].[SquadId], [g].[HasSoulPatch]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -970,10 +970,7 @@ public override async Task Select_inverted_boolean(bool async)

AssertSql(
"""
SELECT [w].[Id], CASE
WHEN [w].[IsAutomatic] = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [Manual]
SELECT [w].[Id], [w].[IsAutomatic] ^ CAST(1 AS bit) AS [Manual]
FROM [Weapons] AS [w]
WHERE [w].[IsAutomatic] = CAST(1 AS bit)
""");
Expand Down Expand Up @@ -5959,12 +5956,9 @@ public override async Task Negated_bool_ternary_inside_anonymous_type_in_project
AssertSql(
"""
SELECT CASE
WHEN CASE
WHEN [s].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([s].[HasSoulPatch], CAST(1 AS bit))
END = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [c]
WHEN [s].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([s].[HasSoulPatch], CAST(1 AS bit))
END ^ CAST(1 AS bit) AS [c]
FROM [Tags] AS [t]
LEFT JOIN (
SELECT [g].[Nickname], [g].[SquadId], [g].[HasSoulPatch]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3012,10 +3012,7 @@ public override async Task Select_inverted_boolean(bool async)

AssertSql(
"""
SELECT [w].[Id], CASE
WHEN [w].[IsAutomatic] = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [Manual]
SELECT [w].[Id], [w].[IsAutomatic] ^ CAST(1 AS bit) AS [Manual]
FROM [Weapons] FOR SYSTEM_TIME AS OF '2010-01-01T00:00:00.0000000' AS [w]
WHERE [w].[IsAutomatic] = CAST(1 AS bit)
""");
Expand Down Expand Up @@ -4413,12 +4410,9 @@ public override async Task Negated_bool_ternary_inside_anonymous_type_in_project
AssertSql(
"""
SELECT CASE
WHEN CASE
WHEN [g].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([g].[HasSoulPatch], CAST(1 AS bit))
END = CAST(0 AS bit) THEN CAST(1 AS bit)
ELSE CAST(0 AS bit)
END AS [c]
WHEN [g].[HasSoulPatch] = CAST(1 AS bit) THEN CAST(1 AS bit)
ELSE COALESCE([g].[HasSoulPatch], CAST(1 AS bit))
END ^ CAST(1 AS bit) AS [c]
FROM [Tags] FOR SYSTEM_TIME AS OF '2010-01-01T00:00:00.0000000' AS [t]
LEFT JOIN [Gears] FOR SYSTEM_TIME AS OF '2010-01-01T00:00:00.0000000' AS [g] ON [t].[GearNickName] = [g].[Nickname] AND [t].[GearSquadId] = [g].[SquadId]
""");
Expand Down

0 comments on commit 83d10f6

Please sign in to comment.