mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(mysql): str should produce VARCHAR not BLOB
This commit is contained in:
parent
0039fcc167
commit
e54d030381
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
use futures::TryStreamExt;
|
||||
use sqlx::mysql::{MySql, MySqlRow};
|
||||
use sqlx::{Connection, Executor, Row};
|
||||
use sqlx::mysql::MySql;
|
||||
use sqlx::Executor;
|
||||
use sqlx_core::describe::Column;
|
||||
use sqlx_test::new;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user