Allow decoding a YEAR value as uint from MySQL

This commit is contained in:
Julius de Bruijn 2020-07-20 19:58:55 +02:00 committed by Ryan Leckey
parent adfa2d2161
commit 8eb8661945

View File

@ -25,6 +25,7 @@ fn uint_compatible(ty: &MySqlTypeInfo) -> bool {
| ColumnType::Long
| ColumnType::Int24
| ColumnType::LongLong
| ColumnType::Year
) && ty.flags.contains(ColumnFlags::UNSIGNED)
}