Skip to content

Merge | TdsParser.GetSniErrorDetails #3434

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

edwardneal
Copy link
Contributor

Description

This is a slightly smaller merge, but it's the first of its type.

TdsParser.Windows.cs and TdsParser.Unix.cs have a number of methods which vary in behaviour based upon TdsParserStateObjectFactory.UseManagedSNI. This PR handles those methods by moving the method to the TdsParserStateObject base class, implementing them in the Native and Managed child classes, then updating the references to use the state object.

Once this process is complete, we'll be able to remove the OS-specific TdsParser files.

Issues

Contributes to #1261.

Testing

Unit tests pass locally, but I'd like a CI run please.

@edwardneal edwardneal requested a review from a team as a code owner June 23, 2025 06:50
@benrr101
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

benrr101
benrr101 previously approved these changes Jun 23, 2025
Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

Makes perfect sense to me - nice that we will be able to drop these OS-specific files!

@benrr101 benrr101 requested a review from a team June 23, 2025 16:43
@benrr101 benrr101 added Code Health 💊 Issues/PRs that are targeted to source code quality improvements. Common Project 🚮 Things that relate to the common project project labels Jun 23, 2025
@benrr101 benrr101 added this to the 7.0-preview1 milestone Jun 23, 2025
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

One tiny question.

@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Health 💊 Issues/PRs that are targeted to source code quality improvements. Common Project 🚮 Things that relate to the common project project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants