Skip to content

Commit

Permalink
postgres: remove IntervalStyle to fix #130
Browse files Browse the repository at this point in the history
Support more server versions, including CockroachDB, which only supports the `postgres` style.
  • Loading branch information
bmisiak authored and janaakhterov committed Mar 20, 2020
1 parent 96b55f1 commit 3ba0c1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sqlx-core/src/postgres/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ async fn startup(stream: &mut PgStream, url: &Url) -> crate::Result<BackendKeyDa
// Sets the display format for date and time values,
// as well as the rules for interpreting ambiguous date input values.
("DateStyle", "ISO, MDY"),
// Sets the display format for interval values.
("IntervalStyle", "iso_8601"),
// Sets the time zone for displaying and interpreting time stamps.
("TimeZone", "UTC"),
// Adjust postgres to return percise values for floats
Expand Down

0 comments on commit 3ba0c1a

Please sign in to comment.