mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 02:02:25 -05:00
[chore]: Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.5 (#2747)
This commit is contained in:
parent
e24efcac8b
commit
d115f9ebc4
67 changed files with 515 additions and 385 deletions
2
vendor/github.com/jackc/pgx/v5/rows.go
generated
vendored
2
vendor/github.com/jackc/pgx/v5/rows.go
generated
vendored
|
|
@ -438,7 +438,7 @@ func AppendRows[T any, S ~[]T](slice S, rows Rows, fn RowToFunc[T]) (S, error) {
|
|||
|
||||
// CollectRows iterates through rows, calling fn for each row, and collecting the results into a slice of T.
|
||||
func CollectRows[T any](rows Rows, fn RowToFunc[T]) ([]T, error) {
|
||||
return AppendRows([]T(nil), rows, fn)
|
||||
return AppendRows([]T{}, rows, fn)
|
||||
}
|
||||
|
||||
// CollectOneRow calls fn for the first row in rows and returns the result. If no rows are found returns an error where errors.Is(ErrNoRows) is true.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue