Skip to content

Commit

Permalink
noRows: return proper io.EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Mercl committed Jan 12, 2021
1 parent d12d3a4 commit 56d82b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ type noRows struct{}

func (noRows) Columns() []string { return nil }
func (noRows) Close() error { return nil }
func (noRows) Next([]driver.Value) error { return sql.ErrNoRows }
func (noRows) Next([]driver.Value) error { return io.EOF }

type tx struct {
c *conn
Expand Down

0 comments on commit 56d82b4

Please sign in to comment.