Skip to content

Commit

Permalink
feat: support the postgres bool type
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre authored and abonander committed Jun 21, 2024
1 parent 33aee07 commit 0eb2ee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlx-postgres/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ impl<'a> TryFrom<&'a PgTypeInfo> for AnyTypeInfo {
fn try_from(pg_type: &'a PgTypeInfo) -> Result<Self, Self::Error> {
Ok(AnyTypeInfo {
kind: match &pg_type.0 {
PgType::Bool => AnyTypeInfoKind::Bool,
PgType::Void => AnyTypeInfoKind::Null,
PgType::Int2 => AnyTypeInfoKind::SmallInt,
PgType::Int4 => AnyTypeInfoKind::Integer,
Expand Down

0 comments on commit 0eb2ee9

Please sign in to comment.