Skip to content

Bug in queries/reflect.go in which bind does not check rows.Err() prior to returning sql.ErrNoRows #1324

@jonderry

Description

@jonderry

This can cause sql.ErrNoRows to be returned incorrectly when any error occurs before foundOne is set to true. This danger is documented for Bind, but Query.Bind does not check this. Nor does bind.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions