From b60c9fb35de00faee06d7e9b5bf4bf840ee52122 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Sat, 22 Jun 2024 15:51:33 +0200 Subject: [PATCH] Update baselines --- .../Query/NullSemanticsQuerySqlServerTest.cs | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/NullSemanticsQuerySqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/Query/NullSemanticsQuerySqlServerTest.cs index 3c034bf1e8d..6f6f40844c3 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/NullSemanticsQuerySqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/NullSemanticsQuerySqlServerTest.cs @@ -60,7 +60,10 @@ WHERE [e].[BoolA] <> [e].[BoolB] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[BoolA] <> [e].[NullableBoolB] AND [e].[NullableBoolB] IS NOT NULL +WHERE CASE + WHEN [e].[BoolA] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END IS NOT DISTINCT FROM [e].[NullableBoolB] """, // """ @@ -96,7 +99,10 @@ WHERE [e].[BoolA] <> [e].[NullableBoolB] AND [e].[NullableBoolB] IS NOT NULL """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[BoolB] AND [e].[NullableBoolA] IS NOT NULL +WHERE [e].[NullableBoolA] IS NOT DISTINCT FROM CASE + WHEN [e].[BoolB] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END """, // """ @@ -180,7 +186,10 @@ FROM [Entities1] AS [e] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB] OR [e].[NullableBoolB] IS NULL +WHERE CASE + WHEN [e].[BoolA] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END IS DISTINCT FROM [e].[NullableBoolB] """, // """ @@ -216,7 +225,10 @@ FROM [Entities1] AS [e] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB] OR [e].[NullableBoolA] IS NULL +WHERE [e].[NullableBoolA] IS DISTINCT FROM CASE + WHEN [e].[BoolB] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END """, // """ @@ -300,7 +312,10 @@ FROM [Entities1] AS [e] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[BoolA] = [e].[NullableBoolB] OR [e].[NullableBoolB] IS NULL +WHERE CASE + WHEN [e].[BoolA] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END IS DISTINCT FROM [e].[NullableBoolB] """, // """ @@ -336,7 +351,10 @@ FROM [Entities1] AS [e] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[NullableBoolA] = [e].[BoolB] OR [e].[NullableBoolA] IS NULL +WHERE [e].[NullableBoolA] IS DISTINCT FROM CASE + WHEN [e].[BoolB] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END """, // """ @@ -420,7 +438,10 @@ WHERE [e].[BoolA] <> [e].[BoolB] """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[BoolA] <> [e].[NullableBoolB] AND [e].[NullableBoolB] IS NOT NULL +WHERE CASE + WHEN [e].[BoolA] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END IS NOT DISTINCT FROM [e].[NullableBoolB] """, // """ @@ -456,7 +477,10 @@ WHERE [e].[BoolA] <> [e].[NullableBoolB] AND [e].[NullableBoolB] IS NOT NULL """ SELECT [e].[Id] FROM [Entities1] AS [e] -WHERE [e].[NullableBoolA] <> [e].[BoolB] AND [e].[NullableBoolA] IS NOT NULL +WHERE [e].[NullableBoolA] IS NOT DISTINCT FROM CASE + WHEN [e].[BoolB] = CAST(0 AS bit) THEN CAST(1 AS bit) + ELSE CAST(0 AS bit) +END """, // """