postgres: remove IntervalStyle to fix #130

Support more server versions, including CockroachDB, which only supports the `postgres` style.
This commit is contained in:
Brian Misiak 2020-03-17 17:55:27 -07:00 committed by GitHub
parent ada57fa566
commit 459828ee3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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