From 2fe173b1a48795527538a97b5b32f8ca218ca27c Mon Sep 17 00:00:00 2001 From: Iron-E Date: Tue, 30 May 2023 18:04:39 -0400 Subject: [PATCH] fix(postgres): https://github.com/launchbadge/sqlx/issues/1920#issuecomment-1161527723 --- sqlx-core/src/postgres/types/record.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sqlx-core/src/postgres/types/record.rs b/sqlx-core/src/postgres/types/record.rs index 352bdb72b3..c2b1bccee6 100644 --- a/sqlx-core/src/postgres/types/record.rs +++ b/sqlx-core/src/postgres/types/record.rs @@ -132,8 +132,7 @@ impl<'r> PgRecordDecoder<'r> { } let element_type = - element_type_opt - .ok_or_else(|| BoxDynError::from(format!("custom types in records are not fully supported yet: failed to retrieve type info for field {} with type oid {}", self.ind, element_type_oid.0)))?; + element_type_opt.unwrap_or_else(|| PgTypeInfo::with_oid(element_type_oid)); self.ind += 1;