mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 04:02:26 -05:00
[chore]: Bump github.com/jackc/pgx/v5 from 5.5.0 to 5.5.1 (#2468)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.0 to 5.5.1. - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/compare/v5.5.0...v5.5.1) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
d685e86432
commit
3ab6214449
20 changed files with 184 additions and 59 deletions
5
vendor/github.com/jackc/pgx/v5/internal/sanitize/sanitize.go
generated
vendored
5
vendor/github.com/jackc/pgx/v5/internal/sanitize/sanitize.go
generated
vendored
|
|
@ -35,6 +35,11 @@ func (q *Query) Sanitize(args ...any) (string, error) {
|
|||
str = part
|
||||
case int:
|
||||
argIdx := part - 1
|
||||
|
||||
if argIdx < 0 {
|
||||
return "", fmt.Errorf("first sql argument must be > 0")
|
||||
}
|
||||
|
||||
if argIdx >= len(args) {
|
||||
return "", fmt.Errorf("insufficient arguments")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue