Closed
Description
Hi.
I tried connecting to CockroachDB just now and hit a little snafu. It supports the PostgreSQL protocol, but it apparently requires IntervalStyle to be set to postgres
instead of iso_8601
.
SQLx sets it to the latter here:
sqlx/sqlx-core/src/postgres/connection.rs
Line 108 in d269506
Which results in:
Error: invalid value for parameter "IntervalStyle": "iso_8601"
Is supporting postgres
here easy for SQLx, or would it be a significant headache? I was worried about INTERVAL
fields but they seem to be returned to the consumer as strings, since conversion to Duration impls haven't been written yet.
When I naively changed the field to postgres
in my fork, connection succeeded and queries work.
Metadata
Metadata
Assignees
Labels
No labels