mirror of https://github.com/jackc/pgx.git
parent
511b90478f
commit
d49a78dd73
|
@ -74,7 +74,7 @@ func convertSimpleArgument(ci *pgtype.ConnInfo, arg interface{}) (interface{}, e
|
||||||
}
|
}
|
||||||
return int64(arg), nil
|
return int64(arg), nil
|
||||||
case uint:
|
case uint:
|
||||||
if arg > math.MaxInt64 {
|
if uint64(arg) > math.MaxInt64 {
|
||||||
return nil, errors.Errorf("arg too big for int64: %v", arg)
|
return nil, errors.Errorf("arg too big for int64: %v", arg)
|
||||||
}
|
}
|
||||||
return int64(arg), nil
|
return int64(arg), nil
|
||||||
|
|
Loading…
Reference in New Issue