|
|
|
@ -18,7 +18,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query;
|
|
|
|
/// This exercises the older translation paths for e.g. Contains, to make sure things work for providers with no queryable constant/
|
|
|
|
/// This exercises the older translation paths for e.g. Contains, to make sure things work for providers with no queryable constant/
|
|
|
|
/// parameter support.
|
|
|
|
/// parameter support.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class PrimitiveCollectionsQueryJetTest : PrimitiveCollectionsQueryTestBase<
|
|
|
|
public class PrimitiveCollectionsQueryJetTest : PrimitiveCollectionsQueryRelationalTestBase<
|
|
|
|
PrimitiveCollectionsQueryJetTest.PrimitiveCollectionsQueryJetFixture>
|
|
|
|
PrimitiveCollectionsQueryJetTest.PrimitiveCollectionsQueryJetFixture>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public PrimitiveCollectionsQueryJetTest(PrimitiveCollectionsQueryJetFixture fixture, ITestOutputHelper testOutputHelper)
|
|
|
|
public PrimitiveCollectionsQueryJetTest(PrimitiveCollectionsQueryJetFixture fixture, ITestOutputHelper testOutputHelper)
|
|
|
|
@ -34,9 +34,9 @@ public class PrimitiveCollectionsQueryJetTest : PrimitiveCollectionsQueryTestBas
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Int] IN (10, 999)
|
|
|
|
WHERE `p`.`Int` IN (10, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -46,9 +46,9 @@ WHERE [p].[Int] IN (10, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[NullableInt] IN (10, 999)
|
|
|
|
WHERE `p`.`NullableInt` IN (10, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,9 +58,9 @@ WHERE [p].[NullableInt] IN (10, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[NullableInt] IS NULL OR [p].[NullableInt] = 999
|
|
|
|
WHERE `p`.`NullableInt` IS NULL OR `p`.`NullableInt` = 999
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -125,9 +125,9 @@ WHERE (
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] = 2
|
|
|
|
WHERE `p`.`Id` = 2
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -137,9 +137,9 @@ WHERE [p].[Id] = 2
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] IN (2, 999)
|
|
|
|
WHERE `p`.`Id` IN (2, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -149,9 +149,9 @@ WHERE [p].[Id] IN (2, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] IN (2, 999, 1000)
|
|
|
|
WHERE `p`.`Id` IN (2, 999, 1000)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -164,9 +164,9 @@ WHERE [p].[Id] IN (2, 999, 1000)
|
|
|
|
@__i_0='2'
|
|
|
|
@__i_0='2'
|
|
|
|
@__j_1='999'
|
|
|
|
@__j_1='999'
|
|
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] IN (@__i_0, @__j_1)
|
|
|
|
WHERE `p`.`Id` IN (@__i_0, @__j_1)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -178,9 +178,9 @@ WHERE [p].[Id] IN (@__i_0, @__j_1)
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
@__j_0='999'
|
|
|
|
@__j_0='999'
|
|
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] IN (2, @__j_0)
|
|
|
|
WHERE `p`.`Id` IN (2, @__j_0)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -192,9 +192,9 @@ WHERE [p].[Id] IN (2, @__j_0)
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
@__i_0='11'
|
|
|
|
@__i_0='11'
|
|
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Int] IN (999, @__i_0, [p].[Id], [p].[Id] + [p].[Int])
|
|
|
|
WHERE `p`.`Int` IN (999, @__i_0, `p`.`Id`, `p`.`Id` + `p`.`Int`)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -204,9 +204,9 @@ WHERE [p].[Int] IN (999, @__i_0, [p].[Id], [p].[Id] + [p].[Int])
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] IN (2, 999)
|
|
|
|
WHERE `p`.`Id` IN (2, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -216,9 +216,9 @@ WHERE [p].[Id] IN (2, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] NOT IN (2, 999)
|
|
|
|
WHERE `p`.`Id` NOT IN (2, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -233,9 +233,9 @@ WHERE [p].[Id] NOT IN (2, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Int] IN (10, 999)
|
|
|
|
WHERE `p`.`Int` IN (10, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -245,9 +245,9 @@ WHERE [p].[Int] IN (10, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Int] IN (10, 999)
|
|
|
|
WHERE `p`.`Int` IN (10, 999)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -257,9 +257,9 @@ WHERE [p].[Int] IN (10, 999)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[NullableInt] IS NULL OR [p].[NullableInt] = 999
|
|
|
|
WHERE `p`.`NullableInt` IS NULL OR `p`.`NullableInt` = 999
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -269,9 +269,9 @@ WHERE [p].[NullableInt] IS NULL OR [p].[NullableInt] = 999
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[String] IN (N'10', N'999')
|
|
|
|
WHERE `p`.`String` IN ('10', '999')
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -281,9 +281,9 @@ WHERE [p].[String] IN (N'10', N'999')
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[NullableString] IS NULL OR [p].[NullableString] = N'999'
|
|
|
|
WHERE `p`.`NullableString` IS NULL OR `p`.`NullableString` = '999'
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -293,9 +293,9 @@ WHERE [p].[NullableString] IS NULL OR [p].[NullableString] = N'999'
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[DateTime] IN ('2020-01-10T12:30:00.0000000Z', '9999-01-01T00:00:00.0000000Z')
|
|
|
|
WHERE `p`.`DateTime` IN (#2020-01-10 12:30:00#, #9999-01-01#)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -305,9 +305,9 @@ WHERE [p].[DateTime] IN ('2020-01-10T12:30:00.0000000Z', '9999-01-01T00:00:00.00
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Bool] = CAST(1 AS bit)
|
|
|
|
WHERE `p`.`Bool` = TRUE
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -317,9 +317,9 @@ WHERE [p].[Bool] = CAST(1 AS bit)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Enum] IN (0, 3)
|
|
|
|
WHERE `p`.`Enum` IN (0, 3)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -329,8 +329,8 @@ WHERE [p].[Enum] IN (0, 3)
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE 0 = 1
|
|
|
|
WHERE 0 = 1
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -480,9 +480,9 @@ WHERE (
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
SELECT [p].[Ints]
|
|
|
|
SELECT `p`.`Ints`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
ORDER BY [p].[Id]
|
|
|
|
ORDER BY `p`.`Id`
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -520,11 +520,11 @@ ORDER BY [p].[Id]
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
@__ints_0='[1,10]' (Size = 4000)
|
|
|
|
@__ints_0='[1,10]' (Size = 255)
|
|
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Ints] = @__ints_0
|
|
|
|
WHERE `p`.`Ints` = @__ints_0
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -534,9 +534,9 @@ WHERE [p].[Ints] = @__ints_0
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
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]
|
|
|
|
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`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Ints] = N'[1,10]'
|
|
|
|
WHERE `p`.`Ints` = '[1,10]'
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -587,9 +587,9 @@ WHERE [p].[Ints] = N'[1,10]'
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
SELECT [p].[Ints]
|
|
|
|
SELECT `p`.`Ints`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
ORDER BY [p].[Id]
|
|
|
|
ORDER BY `p`.`Id`
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -609,9 +609,9 @@ ORDER BY [p].[Id]
|
|
|
|
// client eval
|
|
|
|
// client eval
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
SELECT [p].[Ints]
|
|
|
|
SELECT `p`.`Ints`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
ORDER BY [p].[Id]
|
|
|
|
ORDER BY `p`.`Id`
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -636,10 +636,10 @@ ORDER BY [p].[Id]
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
SELECT [p].[Ints], [p].[DateTimes], [p].[Strings]
|
|
|
|
SELECT `p`.`Ints`, `p`.`DateTimes`, `p`.`Strings`
|
|
|
|
FROM [PrimitiveCollectionsEntity] AS [p]
|
|
|
|
FROM `PrimitiveCollectionsEntity` AS `p`
|
|
|
|
WHERE [p].[Id] < 4
|
|
|
|
WHERE `p`.`Id` < 4
|
|
|
|
ORDER BY [p].[Id]
|
|
|
|
ORDER BY `p`.`Id`
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|