Skip to content

Swallow exceptions when disposing reader - #3317

Merged
roji merged 1 commit into
npgsql:mainfrom
roji:SwallowInDispose
Nov 13, 2020
Merged

roji merged 1 commit into
npgsql:mainfrom
roji:SwallowInDispose

Conversation

@roji

@roji roji commented Nov 10, 2020

Copy link
Copy Markdown
Member

Fixes #2372

@roji
roji requested a review from YohDeadfall as a code owner November 10, 2020 07:21
Comment thread src/Npgsql/NpgsqlDataReader.cs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise, you can add the code at a single place. I mean in the internal Close.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Close should not swallow exceptions

@roji
roji merged commit c732dc9 into npgsql:main Nov 13, 2020
@roji
roji deleted the SwallowInDispose branch November 13, 2020 14:44
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.

Swallow exceptions in NpgsqlDataReader.Dispose()

2 participants