mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2024-12-12 10:13:36 +02:00
21 lines
337 B
Go
21 lines
337 B
Go
// +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
|
|
}
|