Skip to content

Commit

Permalink
fix: AnyRow not support PgType::Varchar (#2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
holicc authored Mar 6, 2024
1 parent b29eab0 commit bbfd0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-postgres/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<'a> TryFrom<&'a PgTypeInfo> for AnyTypeInfo {
PgType::Float4 => AnyTypeInfoKind::Real,
PgType::Float8 => AnyTypeInfoKind::Double,
PgType::Bytea => AnyTypeInfoKind::Blob,
PgType::Text => AnyTypeInfoKind::Text,
PgType::Text | PgType::Varchar => AnyTypeInfoKind::Text,
PgType::DeclareWithName(UStr::Static("citext")) => AnyTypeInfoKind::Text,
_ => {
return Err(sqlx_core::Error::AnyDriverError(
Expand Down

0 comments on commit bbfd0d7

Please sign in to comment.