From 76b627b0a71f7e590a1146dfe71bf7f487c92b9d Mon Sep 17 00:00:00 2001 From: Oleksandr Babak Date: Thu, 17 Oct 2024 19:55:57 +0200 Subject: [PATCH 1/2] fix(sqlx-postgres): macro could not understand pg interval array type --- sqlx-postgres/src/type_checking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlx-postgres/src/type_checking.rs b/sqlx-postgres/src/type_checking.rs index 4fa02289bb..39a255e5da 100644 --- a/sqlx-postgres/src/type_checking.rs +++ b/sqlx-postgres/src/type_checking.rs @@ -24,6 +24,8 @@ impl_type_checking!( sqlx::postgres::types::PgInterval, + Vec | &[sqlx::postgres::types::PgInterval], + sqlx::postgres::types::PgMoney, sqlx::postgres::types::PgLTree, From 011aa2a9b9ea8809aa91d961dd8bfcbefc7a427d Mon Sep 17 00:00:00 2001 From: Oleksandr Babak Date: Thu, 24 Oct 2024 11:03:16 +0200 Subject: [PATCH 2/2] refactor(sqlx-postgres): move pg interval array types closer to other array types --- sqlx-postgres/src/type_checking.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sqlx-postgres/src/type_checking.rs b/sqlx-postgres/src/type_checking.rs index 39a255e5da..708dabddaa 100644 --- a/sqlx-postgres/src/type_checking.rs +++ b/sqlx-postgres/src/type_checking.rs @@ -24,8 +24,6 @@ impl_type_checking!( sqlx::postgres::types::PgInterval, - Vec | &[sqlx::postgres::types::PgInterval], - sqlx::postgres::types::PgMoney, sqlx::postgres::types::PgLTree, @@ -99,6 +97,7 @@ impl_type_checking!( Vec | &[f64], Vec | &[sqlx::postgres::types::Oid], Vec | &[sqlx::postgres::types::PgMoney], + Vec | &[sqlx::postgres::types::PgInterval], #[cfg(feature = "uuid")] Vec | &[sqlx::types::Uuid],