OffsetDateTime now only supports TIMESTAMPZ
This commit is contained in:
parent
f33b145cd6
commit
6d8c403a8d
@ -398,7 +398,7 @@ impl WrongType {
|
|||||||
/// | `chrono::NaiveDate` | DATE |
|
/// | `chrono::NaiveDate` | DATE |
|
||||||
/// | `chrono::NaiveTime` | TIME |
|
/// | `chrono::NaiveTime` | TIME |
|
||||||
/// | `time::PrimitiveDateTime` | TIMESTAMP |
|
/// | `time::PrimitiveDateTime` | TIMESTAMP |
|
||||||
/// | `time::OffsetDateTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
|
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
|
||||||
/// | `time::Date` | DATE |
|
/// | `time::Date` | DATE |
|
||||||
/// | `time::Time` | TIME |
|
/// | `time::Time` | TIME |
|
||||||
/// | `eui48::MacAddress` | MACADDR |
|
/// | `eui48::MacAddress` | MACADDR |
|
||||||
@ -661,7 +661,7 @@ pub enum IsNull {
|
|||||||
/// | `chrono::NaiveDate` | DATE |
|
/// | `chrono::NaiveDate` | DATE |
|
||||||
/// | `chrono::NaiveTime` | TIME |
|
/// | `chrono::NaiveTime` | TIME |
|
||||||
/// | `time::PrimitiveDateTime` | TIMESTAMP |
|
/// | `time::PrimitiveDateTime` | TIMESTAMP |
|
||||||
/// | `time::OffsetDateTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
|
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
|
||||||
/// | `time::Date` | DATE |
|
/// | `time::Date` | DATE |
|
||||||
/// | `time::Time` | TIME |
|
/// | `time::Time` | TIME |
|
||||||
/// | `eui48::MacAddress` | MACADDR |
|
/// | `eui48::MacAddress` | MACADDR |
|
||||||
|
@ -40,7 +40,7 @@ impl<'a> FromSql<'a> for OffsetDateTime {
|
|||||||
Ok(primitive.assume_utc())
|
Ok(primitive.assume_utc())
|
||||||
}
|
}
|
||||||
|
|
||||||
accepts!(TIMESTAMP, TIMESTAMPTZ);
|
accepts!(TIMESTAMPTZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ToSql for OffsetDateTime {
|
impl ToSql for OffsetDateTime {
|
||||||
@ -56,7 +56,7 @@ impl ToSql for OffsetDateTime {
|
|||||||
primitive.to_sql(type_, w)
|
primitive.to_sql(type_, w)
|
||||||
}
|
}
|
||||||
|
|
||||||
accepts!(TIMESTAMP, TIMESTAMPTZ);
|
accepts!(TIMESTAMPTZ);
|
||||||
to_sql_checked!();
|
to_sql_checked!();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user