mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-20 00:54:18 +00:00
fix: AnyRow not support PgType::Varchar (#2976)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user