Skip to content
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

correctly close rows objects if there are multiple result sets #634

Merged
merged 1 commit into from
Jul 7, 2017
Merged

correctly close rows objects if there are multiple result sets #634

merged 1 commit into from
Jul 7, 2017

Conversation

maddyblue
Copy link
Collaborator

No description provided.

@maddyblue maddyblue requested a review from tamird July 6, 2017 08:29
conn_test.go Outdated
}

var id int
if err := db.QueryRow("SELECT 3").Scan(&id); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these calls be on a Tx to definitely use the same connection?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Done.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed this one, which is still a call on db.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ergh. yes.

@maddyblue maddyblue merged commit dd1fe20 into lib:master Jul 7, 2017
@maddyblue maddyblue deleted the close-next branch July 7, 2017 05:36
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.

3 participants