diff --git a/sqlx-mysql/src/query_result.rs b/sqlx-mysql/src/query_result.rs index adbb0df224..17affdf7b5 100644 --- a/sqlx-mysql/src/query_result.rs +++ b/sqlx-mysql/src/query_result.rs @@ -30,7 +30,7 @@ impl From for crate::any::AnyQueryResult { fn from(done: MySqlQueryResult) -> Self { crate::any::AnyQueryResult { rows_affected: done.rows_affected, - last_insert_id: Some(done.last_insert_id), + last_insert_id: Some(done.last_insert_id.try_into().unwrap()), } } }