Skip to content

fix bug in queryResultData when query fails with error#2

Open
MaxFedotov wants to merge 3 commits intoopenark:masterfrom
MaxFedotov:master
Open

fix bug in queryResultData when query fails with error#2
MaxFedotov wants to merge 3 commits intoopenark:masterfrom
MaxFedotov:master

Conversation

@MaxFedotov
Copy link

There can be cases, when our query will return error, so rows will be nil. So if we don't add if statement, we will get errors in defer rows.Close()

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant