-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rows.go Scan() crashes if no arguments #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: