mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-01-19 15:23:07 +00:00
mysql: support understanding ENUM as TEXT
This commit is contained in:
parent
c1e6b2045c
commit
21059620dc
@ -126,6 +126,7 @@ impl<'c> Row<'c> {
|
||||
| TypeId::LONG_BLOB
|
||||
| TypeId::CHAR
|
||||
| TypeId::TEXT
|
||||
| TypeId::ENUM
|
||||
| TypeId::VAR_CHAR => {
|
||||
let (len_size, len) = get_lenenc(&buffer[index..]);
|
||||
|
||||
|
||||
@ -64,11 +64,6 @@ impl MySqlTypeInfo {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub fn r#enum() -> Self {
|
||||
Self::new(TypeId::ENUM)
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for MySqlTypeInfo {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user