Skip to content

Rewrite NpgsqlRange.Parse with modern primitives #5306

Closed as not planned
Closed as not planned

Description

@NinoFloris

I've commented on this code being old and problematic in #5271

@austindrenski has made a start a few years back on this and NpgsqlDate #1974

We just need to finish it and ideally move this code to ISpanParsable entirely in the process.

Activity

  1. roji commented on Oct 4, 2023

    @roji
    Member

    We've had various conversations about this in the past (can look for the issues), but I think there's a good case to be made for not supporting NpgsqlRange.Parse. We generally avoid supporting parsing/formatting except for cases which are completely trivial; for example, date/time formatting/parsing isn't something we can do reliably on the client side, since the representation is supposed to be a PG one. Since ranges can be constructed over arbitrary types (notably over date/time types), they suffer from the same problem.

  2. NinoFloris commented on Mar 12, 2024

    @NinoFloris
    MemberAuthor

    Yep let's leave it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions