Skip to content

Commit

Permalink
fix(test): fix mismatched type error in MySQL type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Oct 26, 2021
1 parent 466d3f3 commit e18b195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlx-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ macro_rules! __test_prepared_type {
#[macro_export]
macro_rules! MySql_query_for_test_prepared_type {
() => {
"SELECT {0} <=> ?, {0}, ?"
// MySQL 8.0.27 changed this to return an unsigned integer
"SELECT CAST({0} <=> ? as SIGNED INTEGER), {0}, ?"
};
}

Expand Down

0 comments on commit e18b195

Please sign in to comment.