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:
parent
aea91cc7de
commit
f35ff7c2eb
|
@ -332,6 +332,10 @@ func SQLType2Type(st SQLType) reflect.Type {
|
||||||
return IntType
|
return IntType
|
||||||
case BigInt, BigSerial:
|
case BigInt, BigSerial:
|
||||||
return Int64Type
|
return Int64Type
|
||||||
|
case UnsignedBit, UnsignedTinyInt, UnsignedSmallInt, UnsignedMediumInt, UnsignedInt:
|
||||||
|
return UintType
|
||||||
|
case UnsignedBigInt:
|
||||||
|
return Uint64Type
|
||||||
case Float, Real:
|
case Float, Real:
|
||||||
return Float32Type
|
return Float32Type
|
||||||
case Double:
|
case Double:
|
||||||
|
|
Loading…
Reference in New Issue