|
|
|
@ -3753,15 +3753,23 @@ WHERE `m`.`Timeline` <> DATEADD('n', {dtoffset}.0, NOW())
|
|
|
|
|
|
|
|
|
|
|
|
public override async Task Where_datetimeoffset_date_component(bool async)
|
|
|
|
public override async Task Where_datetimeoffset_date_component(bool async)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await base.Where_datetimeoffset_date_component(async);
|
|
|
|
//We have to specifically use 1 JAn 100 as that is the minimum in Jet.
|
|
|
|
|
|
|
|
//The default 0 in DateTimeOffset is normally mapped to the OLE Automation date 30 Dec 1899
|
|
|
|
|
|
|
|
//Investigate if we can pick the scenario up automatically and have a new DateTimeOffset().Date go to the required value if we have a comparison
|
|
|
|
|
|
|
|
//await base.Where_datetimeoffset_date_component(async);
|
|
|
|
|
|
|
|
await AssertQuery(
|
|
|
|
|
|
|
|
async,
|
|
|
|
|
|
|
|
ss => from m in ss.Set<Mission>()
|
|
|
|
|
|
|
|
where m.Timeline.Date > new DateTimeOffset(100, 1, 1, 0, 0, 0, new TimeSpan()).Date
|
|
|
|
|
|
|
|
select m);
|
|
|
|
|
|
|
|
|
|
|
|
AssertSql(
|
|
|
|
AssertSql(
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
@__Date_0='0001-01-01T00:00:00.0000000' (DbType = DateTime)
|
|
|
|
@__Date_0='0100-01-01T00:00:00.0000000' (DbType = DateTime)
|
|
|
|
|
|
|
|
|
|
|
|
SELECT `m`.`Id`, `m`.`CodeName`, `m`.`Date`, `m`.`Difficulty`, `m`.`Duration`, `m`.`Rating`, `m`.`Time`, `m`.`Timeline`
|
|
|
|
SELECT `m`.`Id`, `m`.`CodeName`, `m`.`Date`, `m`.`Difficulty`, `m`.`Duration`, `m`.`Rating`, `m`.`Time`, `m`.`Timeline`
|
|
|
|
FROM `Missions` AS `m`
|
|
|
|
FROM `Missions` AS `m`
|
|
|
|
WHERE DATEVALUE(`m`.`Timeline`) > @__Date_0
|
|
|
|
WHERE DATEVALUE(`m`.`Timeline`) > CDATE(@__Date_0)
|
|
|
|
""");
|
|
|
|
""");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|