Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SqlBulkCopy: Explicitly state column name that mismatches(#3170)#3183

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
paulmedynski merged 1 commit intodotnet:mainfromJNjenga:main
Mar 5, 2025

Conversation

JNjenga
Copy link
Contributor

ThrowingSQL.BulkLoadNonMatchingColumnMapping exception when column mappings mismatch does not provide enough information about where the error occurred. ThrowingSQL.BulkLoadNonMatchingColumnName exception is more appropriate.

Fixes (#3170)

@JNjenga
Copy link
ContributorAuthor

@dotnet-policy-service agree

@paulmedynskipaulmedynski requested a review froma teamFebruary 27, 2025 17:13

if(!columnMapping._matchedOrRejected)
{
throw (SQL.BulkLoadNonMatchingColumnName(columnMapping.SourceColumn));
Copy link
Contributor

Choose a reason for hiding this comment

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

Does changing fromSQL.BulkLoadNonMatchingColumnMapping() toSQL.BulkLoadNonMatchingColumnName() affect our API promises? They both end up throwing InvalidOperationException, so probably not. Callers shouldn't be depending on the message of the exception, but you never know!

Copy link
Contributor

@paulmedynskipaulmedynski left a comment

Choose a reason for hiding this comment

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

Great idea overall, with a few improvements noted.

JNjenga reacted with heart emoji
@paulmedynskipaulmedynski merged commit509e7b8 intodotnet:mainMar 5, 2025
1 check passed
@paulmedynski
Copy link
Contributor

@JNjenga - Thanks for the changes!

JNjenga reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@campersaucampersaucampersau left review comments

@apoorvdeshmukhapoorvdeshmukhapoorvdeshmukh approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
6.1-preview1
Development

Successfully merging this pull request may close these issues.

5 participants
@JNjenga@paulmedynski@campersau@apoorvdeshmukh@mdaigle

[8]ページ先頭

©2009-2025 Movatter.jp