Skip to content

Commit

Permalink
fix mssql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Nov 2, 2024
1 parent bbb69eb commit 54b04ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion sqlx-core/src/mssql/types/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl Type<Mssql> for f32 {
}

fn compatible(ty: &MssqlTypeInfo) -> bool {
matches!(ty.0.ty, DataType::Real | DataType::FloatN) && ty.0.size == 4
<f64 as Type<Mssql>>::compatible(ty)
}
}

Expand Down
3 changes: 0 additions & 3 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ services:
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: Password123!
MSSQL_COLLATION: Chinese_PRC_CI_AS
LANG: zh_CN.UTF-8
LC_ALL: zh_CN.UTF-8

#
# IBM Db2
Expand Down

0 comments on commit 54b04ff

Please sign in to comment.