Skip to content

rows.go Scan() crashes if no arguments #2

Description

@khanzf

If the SELECT of a query does not contain any arguments, such as
SELECT FROM table WHERE ....
then the Scan() function crashes on what is currently line 69:
for i, col := range r.rows[r.pos-1] {
I suspect this is because r.pos is 0, so minus 1 is -1, which results in an index error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions