OffsetDateTime now only supports TIMESTAMPZ

This commit is contained in:
Aaron Loucks 2020-02-28 19:52:20 -05:00
parent f33b145cd6
commit 6d8c403a8d
2 changed files with 4 additions and 4 deletions

View File

@ -398,7 +398,7 @@ impl WrongType {
/// | `chrono::NaiveDate` | DATE |
/// | `chrono::NaiveTime` | TIME |
/// | `time::PrimitiveDateTime` | TIMESTAMP |
/// | `time::OffsetDateTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
/// | `time::Date` | DATE |
/// | `time::Time` | TIME |
/// | `eui48::MacAddress` | MACADDR |
@ -661,7 +661,7 @@ pub enum IsNull {
/// | `chrono::NaiveDate` | DATE |
/// | `chrono::NaiveTime` | TIME |
/// | `time::PrimitiveDateTime` | TIMESTAMP |
/// | `time::OffsetDateTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
/// | `time::Date` | DATE |
/// | `time::Time` | TIME |
/// | `eui48::MacAddress` | MACADDR |

View File

@ -40,7 +40,7 @@ impl<'a> FromSql<'a> for OffsetDateTime {
Ok(primitive.assume_utc())
}
accepts!(TIMESTAMP, TIMESTAMPTZ);
accepts!(TIMESTAMPTZ);
}
impl ToSql for OffsetDateTime {
@ -56,7 +56,7 @@ impl ToSql for OffsetDateTime {
primitive.to_sql(type_, w)
}
accepts!(TIMESTAMP, TIMESTAMPTZ);
accepts!(TIMESTAMPTZ);
to_sql_checked!();
}