We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ddcc7d commit b700b1aCopy full SHA for b700b1a
1 file changed
sqlx-core/src/odbc/types/chrono.rs
@@ -646,14 +646,13 @@ mod tests {
646
let date = NaiveDate::from_ymd_opt(2020, 1, 2).unwrap();
647
let result = <NaiveDate as Encode<Odbc>>::encode(date, &mut buf);
648
assert!(matches!(result, crate::encode::IsNull::No));
649
- assert_eq!(buf.len(), 1);
650
assert_eq!(
651
- buf[0],
652
- OdbcArgumentValue::Date(odbc_api::sys::Date {
+ buf,
+ vec![OdbcArgumentValue::Date(odbc_api::sys::Date {
653
year: 2020,
654
month: 1,
655
day: 2,
656
- })
+ })]
657
);
658
}
659
0 commit comments