You've already forked go-sqlmock
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:
2
rows.go
2
rows.go
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user