mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-04 00:05:27 +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::Long
|
||||||
| ColumnType::Int24
|
| ColumnType::Int24
|
||||||
| ColumnType::LongLong
|
| ColumnType::LongLong
|
||||||
|
| ColumnType::Year
|
||||||
) && ty.flags.contains(ColumnFlags::UNSIGNED)
|
) && ty.flags.contains(ColumnFlags::UNSIGNED)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user