fix(mysql): str should produce VARCHAR not BLOB

This commit is contained in:
Ryan Leckey
2020-06-08 02:30:21 -07:00
parent 0039fcc167
commit e54d030381
2 changed files with 4 additions and 5 deletions

View File

@@ -9,8 +9,8 @@ use crate::types::Type;
impl Type<MySql> for str {
fn type_info() -> MySqlTypeInfo {
MySqlTypeInfo {
r#type: ColumnType::Blob, // TEXT
char_set: 224, // utf8mb4_unicode_ci
r#type: ColumnType::VarString, // VARCHAR
char_set: 224, // utf8mb4_unicode_ci
flags: ColumnFlags::empty(),
}
}