noRows: return proper io.EOF

This commit is contained in:
Jan Mercl
2021-01-12 18:19:04 +01:00
parent d12d3a4d8c
commit 56d82b45dc

View File

@@ -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