Skip to content

CalendarDiffTime/SqlInterval objects with negative components do not work #603

@tysonzero

Description

@tysonzero

The underlying cause is haskell/time#260 so if that is fixed then Opaleye may not have to do anything. I still bring it up here because it's a bit more subjective whether or not the issue in time is truly a bug (even though personally I think it's worth addressing there), due to the iso8601 standard potentially not supporting negative intervals.

However in the context of Opaleye the end result is fairly objectively a bug, due to both CalendarDiffTime and SqlInterval internally both fully supporting negative values, but serialization back and forth between them failing. So if the bug is labelled as a wontfix in time (or just takes a while) then Opaleye using something other than time's iso8601... functions seems like the right move.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions