Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interval Type #219

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add interval Type #219

wants to merge 3 commits into from

Conversation

SamProtas
Copy link

I took a stab at adding an Interval ADT to this library as per this conversation:

#176

Let me know your thoughts or any changes you'd like to see. FYI I'm a bit unsure about the appropriate precision for the Interval's fields.

Although I'm testing against PostgreSQL 9.6.3 I appear to have run into this bug (or something similar):

https://www.postgresql.org/message-id/CAMWF=HS++N9-NKsh-o5QSymvp0Np-VB0GdWwAt4uie1h8ZdNTQ@mail.gmail.com

so the Interval builder splits microseconds back out into hours/minutes/seconds/microseconds to keep the numbers low.

@SamProtas
Copy link
Author

FWIW, the only Travis build that failed appears to also be failing on master (cabal version issue) and is for the oldest GHC (7.6.3) being tested.

@lpsmith
Copy link
Owner

lpsmith commented Jul 8, 2017

Thanks for the PR. Yes, I am aware of the build issue with travis, and haven't looked into it too deeply yet. I will not hold that against you. :)

@gbaz
Copy link

gbaz commented Oct 6, 2018

this would be nice to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants