mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-04 23:42:40 +08:00
noRows: return proper io.EOF
This commit is contained in:
@@ -660,7 +660,7 @@ type noRows struct{}
|
|||||||
|
|
||||||
func (noRows) Columns() []string { return nil }
|
func (noRows) Columns() []string { return nil }
|
||||||
func (noRows) Close() error { 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 {
|
type tx struct {
|
||||||
c *conn
|
c *conn
|
||||||
|
Reference in New Issue
Block a user