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

'interval' column type is not supported #59

Closed
pawurb opened this issue Nov 27, 2020 · 2 comments
Closed

'interval' column type is not supported #59

pawurb opened this issue Nov 27, 2020 · 2 comments

Comments

@pawurb
Copy link

pawurb commented Nov 27, 2020

Hi. It looks like the lib does not support 'interval' column type. Sample query:

select interval '1 minute';

Would it be possible to include it? I'm just getting started with Haskell but maybe NominalDiffTime could work here?

@roelvandijk
Copy link

See lpsmith/postgresql-simple#176 for a discussion about FromField NominalDiffTime.
In short: PostgreSQL interval can include months. You can't correctly convert months to days without context.

See lpsmith/postgresql-simple#219 for a Haskell type which exactly matches a PostgreSQL interval.

@phadej
Copy link
Collaborator

phadej commented Jul 21, 2021

See #60

@phadej phadej closed this as completed Jul 21, 2021
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

No branches or pull requests

3 participants