mysql: support understanding ENUM as TEXT

This commit is contained in:
Ryan Leckey 2020-03-17 19:26:31 -07:00
parent c1e6b2045c
commit 21059620dc
2 changed files with 1 additions and 5 deletions

View File

@ -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..]);

View File

@ -64,11 +64,6 @@ impl MySqlTypeInfo {
_ => None,
}
}
#[doc(hidden)]
pub fn r#enum() -> Self {
Self::new(TypeId::ENUM)
}
}
impl Display for MySqlTypeInfo {