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