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

NpgsqlConnection.GetSchema doesn't dispose connections #9

Closed
mfenniak opened this issue Nov 29, 2012 · 2 comments
Closed

NpgsqlConnection.GetSchema doesn't dispose connections #9

mfenniak opened this issue Nov 29, 2012 · 2 comments

Comments

@mfenniak
Copy link

Hi,

I noticed that NpgsqlConnection.GetSchema will, for some cases, create a new NpgsqlConnection using the same connection string. In these cases, the new connection is never disposed. I think these connections should be wrapped in using block to prevent this case.

Mathieu

@franciscojunior
Copy link
Member

Thanks for the heads up, Mathieu! I'll have a look at this.

@franciscojunior
Copy link
Member

kenjiuno added a commit to kenjiuno/Npgsql that referenced this issue May 19, 2014
kenjiuno added a commit to kenjiuno/Npgsql that referenced this issue May 19, 2014
kenjiuno added a commit to kenjiuno/Npgsql that referenced this issue May 21, 2014
roji pushed a commit to roji/Npgsql that referenced this issue Jul 11, 2023
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

No branches or pull requests

2 participants