fix: AnyRow not support PgType::Varchar (#2976)

This commit is contained in:
Joe
2024-03-06 11:47:15 +08:00
committed by GitHub
parent b29eab0439
commit bbfd0d711a

View File

@@ -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(