You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WHERE JSON_VALUE([p].[NullableStrings], '$[2]') = [p].[NullableString] OR (JSON_VALUE([p].[NullableStrings], '$[2]') IS NULL AND [p].[NullableString] IS NULL)
1182
+
WHERE JSON_VALUE([p].[NullableStrings], '$[2]' RETURNING nvarchar(max)) = [p].[NullableString] OR (JSON_VALUE([p].[NullableStrings], '$[2]' RETURNING nvarchar(max)) IS NULL AND [p].[NullableString] IS NULL)
1183
1183
""");
1184
1184
}
1185
1185
@@ -1193,7 +1193,7 @@ public override async Task Non_nullable_reference_column_collection_index_equals
1193
1193
FROM [PrimitiveCollectionsEntity] AS [p]
1194
1194
WHERE EXISTS (
1195
1195
SELECT 1
1196
-
FROM OPENJSON([p].[Strings]) AS [s]) AND JSON_VALUE([p].[Strings], '$[1]') = [p].[NullableString]
1196
+
FROM OPENJSON([p].[Strings]) AS [s]) AND JSON_VALUE([p].[Strings], '$[1]' RETURNING nvarchar(max)) = [p].[NullableString]
1197
1197
""");
1198
1198
}
1199
1199
@@ -1221,11 +1221,7 @@ public override async Task Inline_collection_index_Column_with_EF_Constant()
WHERE CAST(JSON_VALUE([p].[Ints], '$[1]') AS int) = 10
1298
+
WHERE JSON_VALUE([p].[Ints], '$[1]' RETURNING int) = 10
1303
1299
""");
1304
1300
}
1305
1301
@@ -1827,7 +1823,7 @@ SELECT COUNT(*)
1827
1823
SELECT [i1].[Value]
1828
1824
FROM (
1829
1825
SELECT [i].[Value]
1830
-
FROM (VALUES (1, @ints1), (2, @ints2)) AS [i]([_ord], [Value])
1826
+
FROM (VALUES (0, @ints1), (1, @ints2)) AS [i]([_ord], [Value])
1831
1827
ORDER BY [i].[_ord]
1832
1828
OFFSET 1 ROWS
1833
1829
) AS [i1]
@@ -1917,7 +1913,7 @@ FROM [PrimitiveCollectionsEntity] AS [p]
1917
1913
SELECT COUNT(*)
1918
1914
FROM (
1919
1915
SELECT [i].[Value] AS [Value0]
1920
-
FROM (VALUES (1, @ints1), (2, @ints2)) AS [i]([_ord], [Value])
1916
+
FROM (VALUES (0, @ints1), (1, @ints2)) AS [i]([_ord], [Value])
1921
1917
ORDER BY [i].[_ord]
1922
1918
OFFSET 1 ROWS
1923
1919
) AS [i0]
@@ -2147,7 +2143,7 @@ public override async Task Project_primitive_collections_element()
2147
2143
2148
2144
AssertSql(
2149
2145
"""
2150
-
SELECT CAST(JSON_VALUE([p].[Ints], '$[0]') AS int) AS [Indexer], CAST(JSON_VALUE([p].[DateTimes], '$[0]') AS datetime2) AS [EnumerableElementAt], JSON_VALUE([p].[Strings], '$[1]') AS [QueryableElementAt]
2146
+
SELECT JSON_VALUE([p].[Ints], '$[0]' RETURNING int) AS [Indexer], JSON_VALUE([p].[DateTimes], '$[0]' RETURNING datetime2) AS [EnumerableElementAt], JSON_VALUE([p].[Strings], '$[1]' RETURNING nvarchar(max)) AS [QueryableElementAt]
0 commit comments