Make SQLType2Type support uint (#2071)

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2071
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao 2021-11-19 12:32:55 +08:00
parent aea91cc7de
commit f35ff7c2eb
1 changed files with 4 additions and 0 deletions

View File

@ -332,6 +332,10 @@ func SQLType2Type(st SQLType) reflect.Type {
return IntType
case BigInt, BigSerial:
return Int64Type
case UnsignedBit, UnsignedTinyInt, UnsignedSmallInt, UnsignedMediumInt, UnsignedInt:
return UintType
case UnsignedBigInt:
return Uint64Type
case Float, Real:
return Float32Type
case Double: