fix: support postgres custom type
See issue https://github.com/launchbadge/sqlx/issues/1920
This commit is contained in:
parent
f6d2fa3a3d
commit
df15dfe7bb
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,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)))?;
|
||||
.unwrap_or_else(|| PgTypeInfo::with_oid(element_type_oid));
|
||||
|
||||
self.ind += 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue