Skip to content

Commit b68b5fd

Browse files
committed
Backport test fixes.
1 parent 7415040 commit b68b5fd

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

test/EFCore.Cosmos.FunctionalTests/Query/PrimitiveCollectionsQueryCosmosTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,19 +627,19 @@ public override Task Parameter_collection_ImmutableArray_of_ints_Contains_int(bo
627627

628628
AssertSql(
629629
"""
630-
@ints='[10,999]'
630+
@__ints_0='[10,999]'
631631
632632
SELECT VALUE c
633633
FROM root c
634-
WHERE ARRAY_CONTAINS(@ints, c["Int"])
634+
WHERE ARRAY_CONTAINS(@__ints_0, c["Int"])
635635
""",
636636
//
637637
"""
638-
@ints='[10,999]'
638+
@__ints_0='[10,999]'
639639
640640
SELECT VALUE c
641641
FROM root c
642-
WHERE NOT(ARRAY_CONTAINS(@ints, c["Int"]))
642+
WHERE NOT(ARRAY_CONTAINS(@__ints_0, c["Int"]))
643643
""");
644644
});
645645

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,13 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
504504

505505
AssertSql(
506506
"""
507-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
507+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
508508
FROM [PrimitiveCollectionsEntity] AS [p]
509509
WHERE [p].[Int] IN (10, 999)
510510
""",
511511
//
512512
"""
513-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
513+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
514514
FROM [PrimitiveCollectionsEntity] AS [p]
515515
WHERE [p].[Int] NOT IN (10, 999)
516516
""");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
533533
"""
534534
@ints='[10,999]' (Nullable = false) (Size = 4000)
535535
536-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
536+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
537537
FROM [PrimitiveCollectionsEntity] AS [p]
538538
WHERE [p].[Int] IN (
539539
SELECT [i].[value]
@@ -544,7 +544,7 @@ FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
544544
"""
545545
@ints='[10,999]' (Nullable = false) (Size = 4000)
546546
547-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
547+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
548548
FROM [PrimitiveCollectionsEntity] AS [p]
549549
WHERE [p].[Int] NOT IN (
550550
SELECT [i].[value]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
556556
"""
557557
@ints='[10,999]' (Nullable = false) (Size = 4000)
558558
559-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
559+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
560560
FROM [PrimitiveCollectionsEntity] AS [p]
561561
WHERE [p].[Int] IN (
562562
SELECT [i].[value]
@@ -567,7 +567,7 @@ FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
567567
"""
568568
@ints='[10,999]' (Nullable = false) (Size = 4000)
569569
570-
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[NullableWrappedId], [p].[NullableWrappedIdWithNullableComparer], [p].[String], [p].[Strings], [p].[WrappedId]
570+
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
571571
FROM [PrimitiveCollectionsEntity] AS [p]
572572
WHERE [p].[Int] NOT IN (
573573
SELECT [i].[value]

test/EFCore.Sqlite.FunctionalTests/Query/PrimitiveCollectionsQuerySqliteTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
546546
"""
547547
@ints='[10,999]' (Nullable = false) (Size = 8)
548548
549-
SELECT "p"."Id", "p"."Bool", "p"."Bools", "p"."DateTime", "p"."DateTimes", "p"."Enum", "p"."Enums", "p"."Int", "p"."Ints", "p"."NullableInt", "p"."NullableInts", "p"."NullableString", "p"."NullableStrings", "p"."NullableWrappedId", "p"."NullableWrappedIdWithNullableComparer", "p"."String", "p"."Strings", "p"."WrappedId"
549+
SELECT "p"."Id", "p"."Bool", "p"."Bools", "p"."DateTime", "p"."DateTimes", "p"."Enum", "p"."Enums", "p"."Int", "p"."Ints", "p"."NullableInt", "p"."NullableInts", "p"."NullableString", "p"."NullableStrings", "p"."String", "p"."Strings"
550550
FROM "PrimitiveCollectionsEntity" AS "p"
551551
WHERE "p"."Int" IN (
552552
SELECT "i"."value"
@@ -557,7 +557,7 @@ FROM json_each(@ints) AS "i"
557557
"""
558558
@ints='[10,999]' (Nullable = false) (Size = 8)
559559
560-
SELECT "p"."Id", "p"."Bool", "p"."Bools", "p"."DateTime", "p"."DateTimes", "p"."Enum", "p"."Enums", "p"."Int", "p"."Ints", "p"."NullableInt", "p"."NullableInts", "p"."NullableString", "p"."NullableStrings", "p"."NullableWrappedId", "p"."NullableWrappedIdWithNullableComparer", "p"."String", "p"."Strings", "p"."WrappedId"
560+
SELECT "p"."Id", "p"."Bool", "p"."Bools", "p"."DateTime", "p"."DateTimes", "p"."Enum", "p"."Enums", "p"."Int", "p"."Ints", "p"."NullableInt", "p"."NullableInts", "p"."NullableString", "p"."NullableStrings", "p"."String", "p"."Strings"
561561
FROM "PrimitiveCollectionsEntity" AS "p"
562562
WHERE "p"."Int" NOT IN (
563563
SELECT "i"."value"

0 commit comments

Comments
 (0)