Skip to content

Commit 0eb2ee9

Browse files
etorreborreabonander
authored andcommitted
feat: support the postgres bool type
1 parent 33aee07 commit 0eb2ee9

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)