mirror of
https://github.com/jackc/pgx.git
synced 2025-05-24 16:29:54 +00:00
Fixed typo for uint64 data loss checks' error
This commit is contained in:
parent
0ea1a5245c
commit
7f9f79656b
@ -713,7 +713,7 @@ func Decode(vr *ValueReader, d interface{}) error {
|
|||||||
return fmt.Errorf("Can't convert OID %v to uint64", vr.Type().DataType)
|
return fmt.Errorf("Can't convert OID %v to uint64", vr.Type().DataType)
|
||||||
}
|
}
|
||||||
if valInt < 0 {
|
if valInt < 0 {
|
||||||
return fmt.Errorf("%d is less than zero for uint32", valInt)
|
return fmt.Errorf("%d is less than zero for uint64", valInt)
|
||||||
}
|
}
|
||||||
*v = uint64(valInt)
|
*v = uint64(valInt)
|
||||||
case *Oid:
|
case *Oid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user