Skip to content

Conversation

ErikEJ
Copy link
Contributor

@ErikEJ ErikEJ commented Jun 11, 2025

fixes #3410

@Copilot Copilot AI review requested due to automatic review settings June 11, 2025 16:07
@ErikEJ ErikEJ requested a review from a team as a code owner June 11, 2025 16:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an incorrect enum type reference in the exception thrown by ConvertToPoolBlockingPeriod.

  • Corrects the enum type passed to ADP.InvalidEnumerationValue
  • Ensures the error message now references PoolBlockingPeriod instead of ApplicationIntent
Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common/ConnectionString/PoolBlockingUtilities.cs:131

  • Consider adding a unit test to verify that an invalid PoolBlockingPeriod value triggers InvalidEnumerationValue and correctly mentions PoolBlockingPeriod in the exception message.
throw ADP.InvalidEnumerationValue(typeof(PoolBlockingPeriod), (int)eValue);

@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ErikEJ
Copy link
Contributor Author

ErikEJ commented Jun 12, 2025

@cheenamalhotra Pipeline errors seem unrelated?

@cheenamalhotra
Copy link
Member

Yes, looks like that.

@paulmedynski paulmedynski merged commit 4a7f50d into dotnet:main Jun 12, 2025
237 checks passed
@paulmedynski paulmedynski added this to the 6.1-preview2 milestone Jun 12, 2025
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.89%. Comparing base (e649a7c) to head (bdfbacf).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...a/Common/ConnectionString/PoolBlockingUtilities.cs 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (e649a7c) and HEAD (bdfbacf). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (e649a7c) HEAD (bdfbacf)
addons 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3411      +/-   ##
==========================================
- Coverage   68.33%   61.89%   -6.45%     
==========================================
  Files         301      295       -6     
  Lines       65631    65321     -310     
==========================================
- Hits        44849    40428    -4421     
- Misses      20782    24893    +4111     
Flag Coverage Δ
addons ?
netcore 66.97% <0.00%> (-5.64%) ⬇️
netfx 60.33% <0.00%> (-6.67%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

PoolBlockingUtilities incorrectly uses typeof(ApplicationIntent) instead of typeof(PoolBlockingPeriod)
3 participants