diff --git a/sqlx-core/src/mysql/types/str.rs b/sqlx-core/src/mysql/types/str.rs index 37e6f8982d..4b1fab4244 100644 --- a/sqlx-core/src/mysql/types/str.rs +++ b/sqlx-core/src/mysql/types/str.rs @@ -9,6 +9,7 @@ use crate::types::Type; const COLLATE_UTF8_GENERAL_CI: u16 = 33; const COLLATE_UTF8_UNICODE_CI: u16 = 192; const COLLATE_UTF8MB4_UNICODE_CI: u16 = 224; +const COLLATE_UTF8MB4_BIN: u16 = 46 impl Type for str { fn type_info() -> MySqlTypeInfo { @@ -34,7 +35,7 @@ impl Type for str { | ColumnType::Enum ) && matches!( ty.char_set, - COLLATE_UTF8MB4_UNICODE_CI | COLLATE_UTF8_UNICODE_CI | COLLATE_UTF8_GENERAL_CI + COLLATE_UTF8MB4_UNICODE_CI | COLLATE_UTF8_UNICODE_CI | COLLATE_UTF8_GENERAL_CI | COLLATE_UTF8MB4_BIN ) } }