We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a43560 commit e3ca4c3Copy full SHA for e3ca4c3
1 file changed
tests/odbc/odbc.rs
@@ -1180,10 +1180,13 @@ async fn it_handles_prepared_statement_with_wrong_parameter_count() -> anyhow::R
1180
let Err(sqlx_oldapi::Error::Database(err)) = result else {
1181
panic!("should be an error, got {:?}", result);
1182
};
1183
+ let err_str = err.to_string().to_lowercase();
1184
// https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/appendix-a-odbc-error-codes?view=sql-server-ver17
1185
// 07002 -> COUNT field incorrect
1186
assert!(
- err.to_string().contains("07002"),
1187
+ err_str.contains("07002")
1188
+ || err_str.contains("parameter count")
1189
+ || err_str.contains("unbound parameter"),
1190
"{:?} should contain '07002' (COUNT field incorrect)",
1191
err
1192
);
0 commit comments