mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
Allow decoding a YEAR
value as uint from MySQL
This commit is contained in:
parent
adfa2d2161
commit
8eb8661945
@ -25,6 +25,7 @@ fn uint_compatible(ty: &MySqlTypeInfo) -> bool {
|
||||
| ColumnType::Long
|
||||
| ColumnType::Int24
|
||||
| ColumnType::LongLong
|
||||
| ColumnType::Year
|
||||
) && ty.flags.contains(ColumnFlags::UNSIGNED)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user