Skip to content

Conversation

@priyankatiwari08
Copy link
Contributor

@priyankatiwari08 priyankatiwari08 commented Dec 15, 2025

Ports #3749 to release/6.1 branch

Closes #3845

Copilot AI review requested due to automatic review settings December 15, 2025 14:07
@priyankatiwari08 priyankatiwari08 requested a review from a team as a code owner December 15, 2025 14:07
@priyankatiwari08 priyankatiwari08 force-pushed the dev/prtiwar/6.1-SqlDataAdapterIssue branch from fbdcc90 to 8291391 Compare December 15, 2025 14:15
@priyankatiwari08 priyankatiwari08 deleted the dev/prtiwar/6.1-SqlDataAdapterIssue branch December 15, 2025 14:16
@priyankatiwari08 priyankatiwari08 changed the base branch from main to release/6.1 December 15, 2025 14:28
@paulmedynski paulmedynski self-assigned this Dec 15, 2025
paulmedynski
paulmedynski previously approved these changes Dec 15, 2025
@priyankatiwari08 priyankatiwari08 added this to the 6.1.4 milestone Dec 15, 2025
apoorvdeshmukh
apoorvdeshmukh previously approved these changes Dec 15, 2025
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Removed unused SqlDataAdapterBatchUpdateTests.cs file from project.
Copilot AI review requested due to automatic review settings December 16, 2025 10:15
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

Copilot AI review requested due to automatic review settings December 16, 2025 10:48
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

apoorvdeshmukh
apoorvdeshmukh previously approved these changes Dec 16, 2025
Copy link
Contributor

@apoorvdeshmukh apoorvdeshmukh left a comment

Choose a reason for hiding this comment

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

You may want to resolve the copilot comments

apoorvdeshmukh
apoorvdeshmukh previously approved these changes Dec 16, 2025
Copilot AI review requested due to automatic review settings December 16, 2025 16:07
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings December 16, 2025 16:09
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings December 16, 2025 16:10
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Removed EnsureBuyerSellerObjectsExist calls from tests.
Copilot AI review requested due to automatic review settings December 16, 2025 16:44
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings December 16, 2025 17:16
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copy link
Contributor

@apoorvdeshmukh apoorvdeshmukh left a comment

Choose a reason for hiding this comment

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

To be ported after #3749 is fixed in main

Copilot AI review requested due to automatic review settings December 18, 2025 08:50
@priyankatiwari08 priyankatiwari08 marked this pull request as draft December 18, 2025 08:53
Copy link
Contributor

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Comment on lines +392 to +394
<ItemGroup>
<Folder Include="microsoft.data.sqlclient\tests\manualtests\alwaysencrypted\testfixtures\setup\" />
</ItemGroup>
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

This empty Folder ItemGroup is unnecessary and should be removed. Modern SDK-style .csproj files automatically include folders with source files. This element adds no value and creates clutter in the project file. Additionally, the path uses incorrect casing (lowercase instead of proper casing) which doesn't match the actual folder structure.

Suggested change
<ItemGroup>
<Folder Include="microsoft.data.sqlclient\tests\manualtests\alwaysencrypted\testfixtures\setup\" />
</ItemGroup>

Copilot uses AI. Check for mistakes.
var dt = new DataTable(_tableName);
dt.Columns.AddRange(new[]
{
new DataColumn("BuyerSellerID", typeof(int)),
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

Disposable 'DataColumn' is created but not disposed.

Copilot uses AI. Check for mistakes.
dt.Columns.AddRange(new[]
{
new DataColumn("BuyerSellerID", typeof(int)),
new DataColumn("SSN1", typeof(string)),
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

Disposable 'DataColumn' is created but not disposed.

Copilot uses AI. Check for mistakes.
{
new DataColumn("BuyerSellerID", typeof(int)),
new DataColumn("SSN1", typeof(string)),
new DataColumn("SSN2", typeof(string)),
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

Disposable 'DataColumn' is created but not disposed.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings December 18, 2025 10:08
Copy link
Contributor

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

command.ExecuteNonQuery();
}

// ✅ CHANGED: Use unique SP names
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

This comment contains checkmark emojis and review-style markers that should be removed. Comments in production code should simply explain the code without review artifacts. Consider removing this comment since the code is self-explanatory.

Copilot uses AI. Check for mistakes.
command.ExecuteNonQuery();
}

// ✅ CHANGED: Use unique SP names
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

This comment contains checkmark emojis and review-style markers that should be removed. Comments in production code should simply explain the code without review artifacts. Consider removing this comment since the code is self-explanatory.

Copilot uses AI. Check for mistakes.
private readonly ColumnEncryptionKey _columnEncryptionKey1;
private readonly ColumnEncryptionKey _columnEncryptionKey2;

// ✅ ADD: Unique stored procedure names based on table name
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

This comment contains checkmark emojis and review-style markers that should be removed. Comments in production code should simply explain the code without review artifacts. Consider changing to a simple explanatory comment or removing it entirely since the property name and implementation are self-explanatory.

Copilot uses AI. Check for mistakes.
Comment on lines +127 to +132
dt.Columns.AddRange(new[]
{
new DataColumn("BuyerSellerID", typeof(int)),
new DataColumn("SSN1", typeof(string)),
new DataColumn("SSN2", typeof(string)),
});
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

Disposable 'DataColumn' is created but not disposed.

Suggested change
dt.Columns.AddRange(new[]
{
new DataColumn("BuyerSellerID", typeof(int)),
new DataColumn("SSN1", typeof(string)),
new DataColumn("SSN2", typeof(string)),
});
dt.Columns.Add("BuyerSellerID", typeof(int));
dt.Columns.Add("SSN1", typeof(string));
dt.Columns.Add("SSN2", typeof(string));

Copilot uses AI. Check for mistakes.
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.

NullReferenceException when using SqlDataAdapter with Always Encrypted and UpdateBatchSize > 1

4 participants