diff --git a/sqlx-macros-core/src/database/postgres.rs b/sqlx-macros-core/src/database/postgres.rs index 0bd6b4c856..621473d44b 100644 --- a/sqlx-macros-core/src/database/postgres.rs +++ b/sqlx-macros-core/src/database/postgres.rs @@ -26,19 +26,19 @@ impl_database_ext! { #[cfg(feature = "uuid")] sqlx::types::Uuid, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveTime, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDate, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDateTime, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::DateTime | sqlx::types::chrono::DateTime<_>, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgTimeTz, #[cfg(feature = "time")] @@ -91,16 +91,16 @@ impl_database_ext! { #[cfg(feature = "uuid")] Vec | &[sqlx::types::Uuid], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveTime], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveDate], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveDateTime], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::types::chrono::DateTime<_>], #[cfg(feature = "time")] @@ -141,13 +141,13 @@ impl_database_ext! { #[cfg(feature = "rust_decimal")] sqlx::postgres::types::PgRange, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange> | sqlx::postgres::types::PgRange>, @@ -173,19 +173,19 @@ impl_database_ext! { Vec> | &[sqlx::postgres::types::PgRange], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::postgres::types::PgRange], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::postgres::types::PgRange], - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] Vec>> | Vec>>, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] &[sqlx::postgres::types::PgRange>] | &[sqlx::postgres::types::PgRange>], diff --git a/sqlx-macros-core/src/database/sqlite.rs b/sqlx-macros-core/src/database/sqlite.rs index 3c4c440219..00bdd4201b 100644 --- a/sqlx-macros-core/src/database/sqlite.rs +++ b/sqlx-macros-core/src/database/sqlite.rs @@ -12,13 +12,13 @@ impl_database_ext! { String, Vec, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDate, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDateTime, - #[cfg(feature = "chrono")] + #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::DateTime | sqlx::types::chrono::DateTime<_>, #[cfg(feature = "time")]