Skip to content

System.Data.SqlClient.SqlInternalConnectionTds constructor purges original call stack when rethrowing an exception #100

@Dmitry-Me

Description

@Dmitry-Me

System.Data.SqlClient.SqlInternalConnectionTds currently goes like this:

try
{
    OpenLoginEnlist(timeout, connectionOptions, redirectedUserInstance);
    break;
}
catch (SqlException sqlex)
{
    if (something)
    {
         throw sqlex;
    }

throw sqlex causes original call stack of where the exception was thrown to be lost. If that's what it desired then it should be explained, otherwise just use throw;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions