Skip to content

Commit aa4c2b6

Browse files
committed
fix(odbc): use decode-only test for padded datetime strings
1 parent 8cd2a6e commit aa4c2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/odbc/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(clippy::approx_constant)]
22
use sqlx_oldapi::odbc::Odbc;
3-
use sqlx_test::test_type;
3+
use sqlx_test::{test_decode_type, test_type};
44

55
// Basic null test
66
test_type!(null<Option<i32>>(Odbc,
@@ -163,7 +163,7 @@ mod chrono_tests {
163163
));
164164

165165
// Extra chrono decoding edge case (padded timestamp string)
166-
test_type!(chrono_datetime_padded<NaiveDateTime>(Odbc,
166+
test_decode_type!(chrono_datetime_padded<NaiveDateTime>(Odbc,
167167
"'2023-12-25 14:30:00 '" == NaiveDate::from_ymd_opt(2023, 12, 25).unwrap().and_hms_opt(14, 30, 0).unwrap()
168168
));
169169

0 commit comments

Comments
 (0)