Skip to content

Commit 1b645ba

Browse files
committed
fix: handle base type
1 parent 2df69c9 commit 1b645ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tokio-postgres/src/prepare.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ pub(crate) async fn get_type(client: &Arc<InnerClient>, oid: Oid) -> Result<Type
168168
} else if relid != 0 {
169169
let fields = get_composite_fields(client, relid).await?;
170170
Kind::Composite(fields)
171+
} else if type_ == b'b' as i8 {
172+
Kind::Simple
171173
} else {
172174
return Err(Error::unsupported_type());
173175
};

0 commit comments

Comments
 (0)