Skip to content

Commit

Permalink
Add DATETIME to DateTime<FixedOffset> decoding (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltymango2619 authored May 4, 2024
1 parent 82711a6 commit 5880642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlx-core/src/mssql/types/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ impl Decode<'_, Mssql> for DateTime<FixedOffset> {
DataType::SmallDateTime | DataType::DateTimeN if size == 4 => {
decode_smalldatetime(bytes)
}
DataType::DateTime |
DataType::DateTimeN if size == 8 => decode_datetime(bytes),
DataType::DateTimeOffsetN => decode_datetimeoffset(scale, bytes),
_ => Err("unsupported datetime+offset type".into()),
Expand Down

0 comments on commit 5880642

Please sign in to comment.