You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DateTimeOffset bounds and elements accept +0530 and +5:30, which the docs and the sibling types refuse #234
area/literalsParse, TryParse and formattingbreakingChanges an answer or a signature — needs a majorbugSomething isn't workingpackage/coreAffects CodoMetis.ValueRangesseverity/lowCosmetic, message or documentation-level difference
DateTimeRange, InstantRange and LocalDateTimeRange refuse all three.
docs/serialization.md:150 says the offset "needs a Z, ±HH, ±HH:mm or ±HH:mm:ss", and docs/migration.md:603 says "+0530 and +5:30 are rejected". PostgreSQL reads all of them, and where the library accepts one, the instant matches. So this is no wrong value, but it contradicts the stated grammar and the sibling types. Found by the pre-tag analysis (#179), part B. Most likely older than 10.0.0.
The decision follows the docs and siblings: refuse them (a tightening, so it goes in this major).
Change
Validate the offset text against the ISO forms before handing it to the BCL parser, on every entry point.
Done when
+0530, +5:30, +1430 and +1530 rows are in DateTimeOffset_Rejects and the timestamptz corpus in LiteralCorpusProbeTests, failing with the pre-check removed. The changelog lists it under "what can break you".
area/literalsParse, TryParse and formattingbreakingChanges an answer or a signature — needs a majorbugSomething isn't workingpackage/coreAffects CodoMetis.ValueRangesseverity/lowCosmetic, message or documentation-level difference
Activity