mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-26 01:58:47 +00:00
fix: AnyRow not support PgType::Varchar (#2976)
This commit is contained in:
parent
b29eab0439
commit
bbfd0d711a
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user