Skip to content

Backport 6.0 | SqlDecimal Extract Data #3466

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 1 commit into
base: release/6.0
Choose a base branch
from

Conversation

benrr101
Copy link
Contributor

@benrr101 benrr101 commented Jul 9, 2025

Description

Due to legal reasons, we have to take a change to the SqlDecimal type workarounds in netfx.

Issues

N/A

Testing

This is a drop-in replacement for the existing method, CI should successfully verify.

@Copilot Copilot AI review requested due to automatic review settings July 9, 2025 17:11
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

Backport of the .NET 6.0 change to simplify how SqlDecimal data fields are extracted in the netfx build, replacing the old serialization-based decomposer with a direct call to SqlDecimal.Data.

  • Removed complex serialization/DynamicMethod-based decomposer for SqlDecimal
  • Added a straightforward SqlDecimalExtractData implementation using Data property
  • Cleaned up unused usings and added XML doc comments and links
Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlTypes/SqlTypeWorkarounds.netfx.cs:137

  • [nitpick] Add unit tests for SqlDecimalExtractData, especially for the SqlDecimal.Null case and typical non-null values, to verify that data fields are correctly extracted and nulls are handled safely.
        internal static void SqlDecimalExtractData(

@benrr101 benrr101 requested a review from a team July 9, 2025 17:13
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.

1 participant