Skip to content

Commit 7cf0c00

Browse files
committed
feat: support the postgres bool type
1 parent 402022d commit 7cf0c00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlx-postgres/src/any.rs

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ impl<'a> TryFrom<&'a PgTypeInfo> for AnyTypeInfo {
182182
fn try_from(pg_type: &'a PgTypeInfo) -> Result<Self, Self::Error> {
183183
Ok(AnyTypeInfo {
184184
kind: match &pg_type.0 {
185+
PgType::Bool => AnyTypeInfoKind::Bool,
185186
PgType::Void => AnyTypeInfoKind::Null,
186187
PgType::Int2 => AnyTypeInfoKind::SmallInt,
187188
PgType::Int4 => AnyTypeInfoKind::Integer,

0 commit comments

Comments
 (0)