acme-dns/vendor/gopkg.in/DATA-DOG/go-sqlmock.v1/rows_go18.go

21 lines
337 B
Go
Raw Normal View History

2018-01-22 16:19:33 +07:00
// +build go1.8
package sqlmock
import "io"
// Implement the "RowsNextResultSet" interface
func (rs *rowSets) HasNextResultSet() bool {
return rs.pos+1 < len(rs.sets)
}
// Implement the "RowsNextResultSet" interface
func (rs *rowSets) NextResultSet() error {
if !rs.HasNextResultSet() {
return io.EOF
}
rs.pos++
return nil
}