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

postgres: remove IntervalStyle to fix #130 #135

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

bmisiak
Copy link
Contributor

@bmisiak bmisiak commented Mar 18, 2020

This way SQLx can support more server versions, including CockroachDB, which only supports the postgres style.

Of note: If we wanted to support conversion of PostgresSQL's INTERVALs to a special type, we'd have to support all IntervalStyles anyway, in case somebody used SET SESSION IntervalStyle to change it after connection is established.

Fixes #130.
I believe the current master struggles with Postgres tests a little so CI might fail.

Thanks for the immediate response y'all!

Support more server versions, including CockroachDB, which only supports the `postgres` style.
@mehcode
Copy link
Member

mehcode commented Mar 18, 2020

No worries about the test failures. Thanks for the contribution.

@mehcode mehcode merged commit fb04f4e into launchbadge:master Mar 18, 2020
@bmisiak bmisiak deleted the patch-1 branch March 18, 2020 03:57
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.

CockroachDB supports the PostgreSQL protocol but connection fails due to "IntervalStyle": "iso_8601"
2 participants