mirror of
https://github.com/jackc/pgx.git
synced 2025-07-10 20:48:09 +00:00
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…
x
Reference in New Issue
Block a user