Skip to content

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
@paulmedynski paulmedynski added this to the 6.0.3 milestone Jul 16, 2025
@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mdaigle mdaigle self-assigned this Aug 26, 2025
@paulmedynski paulmedynski self-assigned this Aug 29, 2025
@benrr101 benrr101 changed the title Backport 6.0 | SqlDecimal Extract Data [6.0] SqlDecimal Extract Data Sep 3, 2025
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.

3 participants