Skip to content

Commit

Permalink
Check interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Sep 24, 2024
1 parent 44c3f9b commit 90218c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,12 @@ type rows struct {
nulls []bool
}

var (
// Ensure these interfaces are implemented:
_ driver.RowsColumnTypeDatabaseTypeName = &rows{}
_ driver.RowsColumnTypeNullable = &rows{}
)

func (r *rows) Close() error {
r.Stmt.ClearBindings()
return r.Stmt.Reset()
Expand Down

0 comments on commit 90218c0

Please sign in to comment.