Skip to content

Commit 43558a4

Browse files
committed
Backport test fixes.
1 parent 7415040 commit 43558a4

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,24 +531,24 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
531531

532532
AssertSql(
533533
"""
534-
@ints='[10,999]' (Nullable = false) (Size = 4000)
534+
@__ints_0='[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]
540-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
540+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
541541
)
542542
""",
543543
//
544544
"""
545-
@ints='[10,999]' (Nullable = false) (Size = 4000)
545+
@__ints_0='[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]
551-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
551+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
552552
)
553553
""");
554554
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,24 +547,24 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
547547

548548
AssertSql(
549549
"""
550-
@ints='[10,999]' (Nullable = false) (Size = 4000)
550+
@__ints_0='[10,999]' (Nullable = false) (Size = 4000)
551551
552552
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]
553553
FROM [PrimitiveCollectionsEntity] AS [p]
554554
WHERE [p].[Int] IN (
555555
SELECT [i].[value]
556-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
556+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
557557
)
558558
""",
559559
//
560560
"""
561-
@ints='[10,999]' (Nullable = false) (Size = 4000)
561+
@__ints_0='[10,999]' (Nullable = false) (Size = 4000)
562562
563563
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]
564564
FROM [PrimitiveCollectionsEntity] AS [p]
565565
WHERE [p].[Int] NOT IN (
566566
SELECT [i].[value]
567-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
567+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
568568
)
569569
""");
570570
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,24 +554,24 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
554554

555555
AssertSql(
556556
"""
557-
@ints='[10,999]' (Nullable = false) (Size = 4000)
557+
@__ints_0='[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]
563-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
563+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
564564
)
565565
""",
566566
//
567567
"""
568-
@ints='[10,999]' (Nullable = false) (Size = 4000)
568+
@__ints_0='[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]
574-
FROM OPENJSON(@ints) WITH ([value] int '$') AS [i]
574+
FROM OPENJSON(@__ints_0) WITH ([value] int '$') AS [i]
575575
)
576576
""");
577577
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,24 +544,24 @@ public override async Task Parameter_collection_ImmutableArray_of_ints_Contains_
544544

545545
AssertSql(
546546
"""
547-
@ints='[10,999]' (Nullable = false) (Size = 8)
547+
@__ints_0='[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"
553-
FROM json_each(@ints) AS "i"
553+
FROM json_each(@__ints_0) AS "i"
554554
)
555555
""",
556556
//
557557
"""
558-
@ints='[10,999]' (Nullable = false) (Size = 8)
558+
@__ints_0='[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"
564-
FROM json_each(@ints) AS "i"
564+
FROM json_each(@__ints_0) AS "i"
565565
)
566566
""");
567567
}

0 commit comments

Comments
 (0)