mirror of
https://github.com/jackc/pgx.git
synced 2025-07-11 13:08:49 +00:00
Fix off by one error in benchmark
This commit is contained in:
parent
d17440d5c7
commit
5c6cf62b53
@ -339,8 +339,9 @@ type benchmarkWriteTableCopyFromSrc struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *benchmarkWriteTableCopyFromSrc) Next() bool {
|
func (s *benchmarkWriteTableCopyFromSrc) Next() bool {
|
||||||
|
next := s.idx < s.count
|
||||||
s.idx++
|
s.idx++
|
||||||
return s.idx < s.count
|
return next
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *benchmarkWriteTableCopyFromSrc) Values() ([]any, error) {
|
func (s *benchmarkWriteTableCopyFromSrc) Values() ([]any, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user