Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

postgres: use sql db context functions #635

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Apr 17, 2019

Now that golang sql.db and libpq support context in exec and query functions for
some time, use them.

Will possibly fix a connection leak when ctx expires since the current
implementation doesn't close sql rows on context expire.

Now that golang sql.db and libpq support context in exec and query functions for
some time, use them.

Will possibly fix a connection leak when ctx expires since the current
implementation doesn't close sql rows on context expire.
@sgotti sgotti merged commit 280a2a6 into sorintlab:master Apr 18, 2019
@sgotti sgotti added this to the v0.14.0 milestone Apr 19, 2019
@sgotti sgotti modified the milestone: v0.14.0 Jun 6, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant