Skip to content

Commit

Permalink
Adding Any support for Local chrono datetime for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Roach authored and mehcode committed May 21, 2021
1 parent 18acba2 commit db09cb6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sqlx-core/src/any/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ impl_any_type!(chrono::NaiveDateTime);
impl_any_type!(chrono::DateTime<chrono::offset::Utc>);
#[cfg(all(
feature = "chrono",
any(feature = "sqlite", feature = "postgres"),
not(any(feature = "mysql", feature = "mssql"))
any(feature = "sqlite", feature = "postgres", feature = "mysql"),
not(feature = "mssql")
))]
impl_any_type!(chrono::DateTime<chrono::offset::Local>);

Expand Down Expand Up @@ -153,8 +153,8 @@ impl_any_encode!(chrono::NaiveDateTime);
impl_any_encode!(chrono::DateTime<chrono::offset::Utc>);
#[cfg(all(
feature = "chrono",
any(feature = "sqlite", feature = "postgres"),
not(any(feature = "mysql", feature = "mssql"))
any(feature = "sqlite", feature = "postgres", feature = "mysql"),
not(feature = "mssql")
))]
impl_any_encode!(chrono::DateTime<chrono::offset::Local>);

Expand Down Expand Up @@ -185,7 +185,7 @@ impl_any_decode!(chrono::NaiveDateTime);
impl_any_decode!(chrono::DateTime<chrono::offset::Utc>);
#[cfg(all(
feature = "chrono",
any(feature = "sqlite", feature = "postgres"),
not(any(feature = "mysql", feature = "mssql"))
any(feature = "sqlite", feature = "postgres", feature = "mysql"),
not(feature = "mssql")
))]
impl_any_decode!(chrono::DateTime<chrono::offset::Local>);

0 comments on commit db09cb6

Please sign in to comment.