Skip to content

Commit bbfd0d7

Browse files
authored
fix: AnyRow not support PgType::Varchar (#2976)
1 parent b29eab0 commit bbfd0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-postgres/src/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl<'a> TryFrom<&'a PgTypeInfo> for AnyTypeInfo {
178178
PgType::Float4 => AnyTypeInfoKind::Real,
179179
PgType::Float8 => AnyTypeInfoKind::Double,
180180
PgType::Bytea => AnyTypeInfoKind::Blob,
181-
PgType::Text => AnyTypeInfoKind::Text,
181+
PgType::Text | PgType::Varchar => AnyTypeInfoKind::Text,
182182
PgType::DeclareWithName(UStr::Static("citext")) => AnyTypeInfoKind::Text,
183183
_ => {
184184
return Err(sqlx_core::Error::AnyDriverError(

0 commit comments

Comments
 (0)