Skip to content

Conversation

@yyjdelete
Copy link

@yyjdelete yyjdelete commented Jul 27, 2020

Fix #39620

Avoid the exact match result be overwrite by later inexact ones.
This may not happen due to limited callsites, just make the code more clear.

@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@dnfadmin
Copy link

dnfadmin commented Jul 27, 2020

CLA assistant check
All CLA requirements met.

@ghost
Copy link

ghost commented Jul 27, 2020

Tagging subscribers to this area: @roji, @ajcvickers
See info in area-owners.md if you want to be subscribed.

@Wraith2
Copy link
Contributor

Wraith2 commented Jul 27, 2020

Tests?

@yyjdelete
Copy link
Author

yyjdelete commented Jul 28, 2020

Infact, I don't know how and where to create an test for this internal api. And maybe it's not a problem due to it's internal and there is no dupe tables with different case actually used by public apis.

https://github.com/dotnet/runtime/search?q=filename%3AMetaData.xml&unscoped_q=filename%3AMetaData.xml

@yyjdelete yyjdelete closed this Jul 28, 2020
Copy link
Contributor

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

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

I wouldn't close this PR just because you aren't adding tests. The bug is valid and benefits from being fixed, even though it doesn't surface with the existing *.SqlMetaData.xml embedded resources.

@yyjdelete yyjdelete reopened this Jul 29, 2020
@danmoseley
Copy link
Member

@cheenamalhotra this PR is pretty old now -- what's the next step?

@cheenamalhotra
Copy link
Member

Since we don't have System.Data.SqlClient anymore, it can be closed.
The fix was ported over to Microsoft.Data.SqlClient - dotnet/SqlClient#668

@ghost ghost locked as resolved and limited conversation to collaborators Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strange logic in System.Data.ProviderBase.DbMetaDataFactory.FindMetaDataCollectionRow()

8 participants