Skip to content

Commit cf826a5

Browse files
authored
test: fix Next() method (#120)
1 parent 57e7bb8 commit cf826a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/driver.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ func (s *SqlHandler) Next(dest []driver.Value) error {
104104
return io.EOF
105105
}
106106

107+
row := s.Data.Rows[s.row]
107108
s.row++
108-
for _, row := range s.Data.Rows {
109-
for i, col := range row {
110-
dest[i] = col
111-
}
109+
110+
for i, col := range row {
111+
dest[i] = col
112112
}
113113
return nil
114114
}

0 commit comments

Comments
 (0)