mirror of https://github.com/jackc/pgx.git
Fix off by one error in benchmark
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…
Reference in New Issue