From 0eb2ee93650eaf10d9cadc107a88bfabfdf377a7 Mon Sep 17 00:00:00 2001 From: etorreborre Date: Fri, 14 Jun 2024 11:22:18 +0200 Subject: [PATCH] feat: support the postgres bool type --- sqlx-postgres/src/any.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sqlx-postgres/src/any.rs b/sqlx-postgres/src/any.rs index f1424ab6c9..2419551821 100644 --- a/sqlx-postgres/src/any.rs +++ b/sqlx-postgres/src/any.rs @@ -182,6 +182,7 @@ impl<'a> TryFrom<&'a PgTypeInfo> for AnyTypeInfo { fn try_from(pg_type: &'a PgTypeInfo) -> Result { Ok(AnyTypeInfo { kind: match &pg_type.0 { + PgType::Bool => AnyTypeInfoKind::Bool, PgType::Void => AnyTypeInfoKind::Null, PgType::Int2 => AnyTypeInfoKind::SmallInt, PgType::Int4 => AnyTypeInfoKind::Integer,