Support async connection close during NpgsqlDataReader cleanup and NpgsqlCommand exception handling by brianpursley · Pull Request #6459 · npgsql/npgsql
Pull request overview
This pull request adds proper async support to connection close operations in exception handling and cleanup paths, and fixes several minor spelling/grammar issues in comments.
Changes:
- Updated
NpgsqlDataReader.Cleanupto await connection close calls with async parameter - Updated
NpgsqlCommand.ExecuteReaderexception handler to await connection close with async parameter - Fixed spelling and grammar errors in code comments
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Npgsql/NpgsqlDataReader.cs | Added async support for connection close during reader cleanup; fixed comment spelling/grammar |
| src/Npgsql/NpgsqlCommand.cs | Added async support for connection close in ExecuteReader exception handler |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.