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 70991d4
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 70991d4

Please sign in to comment.