Skip to content

Commit fdc0186

Browse files
authored
Also remove obsolete TimestampTZ/TimeTZ (#5394)
Closes #4788
1 parent 8e87572 commit fdc0186

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

src/Npgsql/NpgsqlTypes/NpgsqlDbType.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,6 @@ public enum NpgsqlDbType
223223
[BuiltInPostgresType("timestamp", baseOID: 1114, arrayOID: 1115, rangeName: "tsrange", rangeOID: 3908, multirangeName: "tsmultirange", multirangeOID: 4533)]
224224
Timestamp = 21,
225225

226-
/// <summary>
227-
/// Corresponds to the PostgreSQL "timestamp with time zone" type.
228-
/// </summary>
229-
/// <remarks>See https://www.postgresql.org/docs/current/static/datatype-datetime.html</remarks>
230-
[Obsolete("Use TimestampTz instead")] // NOTE: Don't remove this (see #1694)
231-
TimestampTZ = TimestampTz,
232-
233226
/// <summary>
234227
/// Corresponds to the PostgreSQL "timestamp with time zone" type.
235228
/// </summary>
@@ -244,13 +237,6 @@ public enum NpgsqlDbType
244237
[BuiltInPostgresType("interval", baseOID: 1186, arrayOID: 1187)]
245238
Interval = 30,
246239

247-
/// <summary>
248-
/// Corresponds to the PostgreSQL "time with time zone" type.
249-
/// </summary>
250-
/// <remarks>See https://www.postgresql.org/docs/current/static/datatype-datetime.html</remarks>
251-
[Obsolete("Use TimeTz instead")] // NOTE: Don't remove this (see #1694)
252-
TimeTZ = TimeTz,
253-
254240
/// <summary>
255241
/// Corresponds to the PostgreSQL "time with time zone" type.
256242
/// </summary>

src/Npgsql/PublicAPI.Unshipped.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ override Npgsql.NpgsqlBatch.Dispose() -> void
8787
*REMOVED*static NpgsqlTypes.NpgsqlPath.Parse(string! s) -> NpgsqlTypes.NpgsqlPath
8888
*REMOVED*static NpgsqlTypes.NpgsqlPoint.Parse(string! s) -> NpgsqlTypes.NpgsqlPoint
8989
*REMOVED*static NpgsqlTypes.NpgsqlPolygon.Parse(string! s) -> NpgsqlTypes.NpgsqlPolygon
90+
*REMOVED*NpgsqlTypes.NpgsqlDbType.TimestampTZ = 26 -> NpgsqlTypes.NpgsqlDbType
91+
*REMOVED*NpgsqlTypes.NpgsqlDbType.TimeTZ = 31 -> NpgsqlTypes.NpgsqlDbType
9092
*REMOVED*NpgsqlTypes.NpgsqlInet.Deconstruct(out System.Net.IPAddress! address, out int netmask) -> void
9193
*REMOVED*NpgsqlTypes.NpgsqlInet.NpgsqlInet(System.Net.IPAddress! address, int netmask) -> void
9294
*REMOVED*NpgsqlTypes.NpgsqlInet.Address.set -> void

0 commit comments

Comments
 (0)