Skip to content

Commit

Permalink
Depend on Npgsql 6.0.0 GA
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 9, 2021
1 parent d10fb38 commit 025fc55
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<Copyright>Copyright 2021 © The Npgsql Development Team</Copyright>
<Company>Npgsql</Company>
<VersionPrefix>6.0.0-rtm</VersionPrefix>
<VersionPrefix>6.0.0</VersionPrefix>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseExpression>PostgreSQL</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/npgsql/efcore.pg</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<EFCoreVersion>6.0.0</EFCoreVersion>
<MicrosoftExtensionsVersion>6.0.0</MicrosoftExtensionsVersion>
<NpgsqlVersion>6.0.0-rtm-ci.20211108T102656</NpgsqlVersion>
<NpgsqlVersion>6.0.0</NpgsqlVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 0 additions & 7 deletions NuGet.config

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public virtual void Can_insert_and_read_back_all_mapped_data_types()
@p5='h' (Nullable = false)
@p6='2015-01-02T00:00:00.0000000' (DbType = Date)
@p7='2015-01-02T10:11:12.0000000' (DbType = DateTime)
@p8='2016-01-02T11:11:12.0000000Z' (DbType = DateTimeOffset)
@p8='2016-01-02T11:11:12.0000000Z' (DbType = DateTime)
@p9='0001-01-01T12:00:00.0000000+02:00' (DbType = Object)
@p10='101.7'
@p11='81.1' (DbType = Currency)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ await AssertQuery(
m => start <= m.Timeline.Date && m.Timeline < end && dates.Contains(m.Timeline)));

AssertSql(
@"@__start_0='1902-01-01T10:00:00.1234567+00:00'
@__end_1='1902-01-03T10:00:00.1234567+00:00'
@"@__start_0='1902-01-01T10:00:00.1234567+00:00' (DbType = DateTime)
@__end_1='1902-01-03T10:00:00.1234567+00:00' (DbType = DateTime)
@__dates_2={ '1902-01-02T10:00:00.1234567+00:00' } (DbType = Object)
SELECT m.""Id"", m.""CodeName"", m.""Date"", m.""Duration"", m.""Rating"", m.""Time"", m.""Timeline""
Expand Down
4 changes: 2 additions & 2 deletions test/EFCore.PG.FunctionalTests/Query/JsonPocoQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void Output_DateTime()

Assert.Equal("Moe", x.Customer.Name);
AssertSql(
@"@__p_0='1990-03-03T17:10:15.0000000Z' (DbType = DateTimeOffset)
@"@__p_0='1990-03-03T17:10:15.0000000Z' (DbType = DateTime)
SELECT j.""Id"", j.""Customer"", j.""ToplevelArray""
FROM ""JsonbEntities"" AS j
Expand All @@ -178,7 +178,7 @@ public void Output_DateTimeOffset()

Assert.Equal("Moe", x.Customer.Name);
AssertSql(
@"@__p_0='1990-03-03T17:10:15.0000000+00:00'
@"@__p_0='1990-03-03T17:10:15.0000000+00:00' (DbType = DateTime)
SELECT j.""Id"", j.""Customer"", j.""ToplevelArray""
FROM ""JsonbEntities"" AS j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public virtual async Task Where_datetime_now()
_ = await ctx.Entities.Where(c => DateTime.Now != myDatetime).ToListAsync();

AssertSql(
@"@__myDatetime_0='2015-04-10T00:00:00.0000000Z' (DbType = DateTimeOffset)
@"@__myDatetime_0='2015-04-10T00:00:00.0000000Z' (DbType = DateTime)
SELECT e.""Id"", e.""TimestampDateTime"", e.""TimestampDateTimeOffset"", e.""TimestamptzDateTime""
FROM ""Entities"" AS e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ await AssertQuery(
m => start <= m.Timeline.Date && m.Timeline < end && dates.Contains(m.Timeline)));

AssertSql(
@"@__start_0='1902-01-01T10:00:00.1234567+00:00'
@__end_1='1902-01-03T10:00:00.1234567+00:00'
@"@__start_0='1902-01-01T10:00:00.1234567+00:00' (DbType = DateTime)
@__end_1='1902-01-03T10:00:00.1234567+00:00' (DbType = DateTime)
@__dates_2={ '1902-01-02T10:00:00.1234567+00:00' } (DbType = Object)
SELECT m.""Id"", m.""CodeName"", m.""Date"", m.""Duration"", m.""Rating"", m.""Time"", m.""Timeline""
Expand Down
4 changes: 2 additions & 2 deletions test/EFCore.PG.FunctionalTests/Query/TimestampQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ await AssertQuery(
entryCount: 1);

AssertSql(
@"@__dateTime_0='1998-04-12T13:26:38.0000000Z' (DbType = DateTimeOffset)
@"@__dateTime_0='1998-04-12T13:26:38.0000000Z' (DbType = DateTime)
SELECT e.""Id"", e.""TimestampDateTime"", e.""TimestampDateTimeArray"", e.""TimestampDateTimeOffset"", e.""TimestampDateTimeOffsetArray"", e.""TimestampDateTimeRange"", e.""TimestamptzDateTime"", e.""TimestamptzDateTimeArray"", e.""TimestamptzDateTimeRange""
FROM ""Entities"" AS e
Expand Down Expand Up @@ -333,7 +333,7 @@ await AssertQuery(
entryCount: 2);

AssertSql(
@"@__myDatetime_0='2015-04-10T00:00:00.0000000Z' (DbType = DateTimeOffset)
@"@__myDatetime_0='2015-04-10T00:00:00.0000000Z' (DbType = DateTime)
SELECT e.""Id"", e.""TimestampDateTime"", e.""TimestampDateTimeArray"", e.""TimestampDateTimeOffset"", e.""TimestampDateTimeOffsetArray"", e.""TimestampDateTimeRange"", e.""TimestamptzDateTime"", e.""TimestamptzDateTimeArray"", e.""TimestamptzDateTimeRange""
FROM ""Entities"" AS e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ await AssertQuery(
entryCount: 1);

AssertSql(
@"@__ToInstant_0='2018-04-20T08:31:33Z' (DbType = DateTimeOffset)
@"@__ToInstant_0='2018-04-20T08:31:33Z' (DbType = DateTime)
SELECT n.""Id"", n.""DateInterval"", n.""Duration"", n.""Instant"", n.""InstantRange"", n.""Interval"", n.""LocalDate"", n.""LocalDate2"", n.""LocalDateRange"", n.""LocalDateTime"", n.""LocalTime"", n.""Long"", n.""OffsetTime"", n.""Period"", n.""ZonedDateTime""
FROM ""NodaTimeTypes"" AS n
Expand Down Expand Up @@ -1149,7 +1149,7 @@ await AssertQuery(
entryCount: 1);

AssertSql(
@"@__p_0='2018-04-20T10:31:33 UTC (+00)' (DbType = DateTimeOffset)
@"@__p_0='2018-04-20T10:31:33 UTC (+00)' (DbType = DateTime)
SELECT n.""Id"", n.""DateInterval"", n.""Duration"", n.""Instant"", n.""InstantRange"", n.""Interval"", n.""LocalDate"", n.""LocalDate2"", n.""LocalDateRange"", n.""LocalDateTime"", n.""LocalTime"", n.""Long"", n.""OffsetTime"", n.""Period"", n.""ZonedDateTime""
FROM ""NodaTimeTypes"" AS n
Expand Down Expand Up @@ -1383,7 +1383,7 @@ await AssertQuery(
entryCount: 1);

AssertSql(
@"@__ToInstant_0='2018-04-20T10:31:33Z' (DbType = DateTimeOffset)
@"@__ToInstant_0='2018-04-20T10:31:33Z' (DbType = DateTime)
SELECT n.""Id"", n.""DateInterval"", n.""Duration"", n.""Instant"", n.""InstantRange"", n.""Interval"", n.""LocalDate"", n.""LocalDate2"", n.""LocalDateRange"", n.""LocalDateTime"", n.""LocalTime"", n.""Long"", n.""OffsetTime"", n.""Period"", n.""ZonedDateTime""
FROM ""NodaTimeTypes"" AS n
Expand Down

0 comments on commit 025fc55

Please sign in to comment.