1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-07-03 00:36:52 +02:00

closes #114 allow expecting rows to be closed

This commit is contained in:
gedi
2018-12-11 17:38:12 +02:00
parent a6e6646ad9
commit f7b0b9305b
7 changed files with 70 additions and 4 deletions

View File

@ -22,6 +22,7 @@ var CSVColumnParser = func(s string) []byte {
type rowSets struct {
sets []*Rows
pos int
ex *ExpectedQuery
}
func (rs *rowSets) Columns() []string {
@ -29,6 +30,7 @@ func (rs *rowSets) Columns() []string {
}
func (rs *rowSets) Close() error {
rs.ex.rowsWereClosed = true
return rs.sets[rs.pos].closeErr
}