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

Support for interval PG types #160

Open
flash-gordon opened this issue Feb 25, 2017 · 4 comments
Open

Support for interval PG types #160

flash-gordon opened this issue Feb 25, 2017 · 4 comments

Comments

@flash-gordon
Copy link
Member

It's probably will be tricky because PG has 5 formats for input and 4 for output, or something like that.
https://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-INTERVAL-INPUT

@solnic
Copy link
Member

solnic commented Mar 2, 2017

Do we want this in 1.x or 2.0?

@solnic solnic added the inferrer label Nov 2, 2017
@solnic solnic changed the title [inferrer] Support for interval PG types Support for interval PG types Nov 2, 2017
@GustavoCaso
Copy link
Member

@v-kolesnikov are you still working on this one? I like to give it a try

@v-kolesnikov
Copy link
Collaborator

Hi @GustavoCaso !
No, I am not. I have worked on other issue #234 and my reference to current issue probably was a typo.

@flash-gordon
Copy link
Member Author

gordon=# select interval '2 days 23:12';
    interval
-----------------
 2 days 23:12:00
(1 row)

gordon=# select interval '2 days 23';
    interval
-----------------
 2 days 00:00:23
(1 row)

gordon=# select interval '2 days 23:';
    interval
-----------------
 2 days 23:00:00
(1 row)

gordon=# select interval '2 days 23:second:year:day';
    interval
-----------------
 2 days 23:00:00
(1 row)

postgres, what are you doing, stop!

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

No branches or pull requests

4 participants