You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exceptions in later batched statements aren't handled correctly in NpgsqlDataReader #2820
NpgsqlDataReader.NextResultAsync is a non-async method that calls other async methods (i.e. NextResult), and wraps them with try/catch. This means that only exceptions thrown in the initial synchronous part of NextResult are caught - up to the first yielding await, and other exceptions aren't handled.
Rule: be very careful when (and probably avoid) doing any exception handling in sync wrappers over async methods.
Activity
Fix prepare-related exception handling behavior