Skip to content

Commit 18bbab8

Browse files
committed
add mysql mapping
1 parent 7d2161a commit 18bbab8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sqlx-mysql/src/any.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ impl<'a> TryFrom<&'a MySqlTypeInfo> for AnyTypeInfo {
168168
ColumnType::String | ColumnType::VarString | ColumnType::VarChar => {
169169
AnyTypeInfoKind::Text
170170
}
171+
#[cfg(feature = "json")]
172+
ColumnType::Json => AnyTypeInfoKind::Json,
171173
_ => {
172174
return Err(sqlx_core::Error::AnyDriverError(
173175
format!("Any driver does not support MySql type {type_info:?}").into(),

0 commit comments

Comments
 (0)