Skip to content

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