Skip to content

Commit ee28c30

Browse files
committed
fix(chrono): return NaiveDate directly instead of wrapping in and_hms_opt
1 parent cd3c053 commit ee28c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/odbc/types/chrono.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<'r> Decode<'r, Odbc> for NaiveDate {
176176
s[6..8].parse::<u32>(),
177177
) {
178178
if let Some(date) = NaiveDate::from_ymd_opt(y, m, d) {
179-
return Ok(date.and_hms_opt(0, 0, 0).unwrap());
179+
return Ok(date);
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)