Skip to content
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

[5.0.1] RevEng: Call correct overload of HasIndex when scaffolding constraints without name #23277

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

smitpatel
Copy link
Member

@smitpatel smitpatel commented Nov 11, 2020

Resolves #23268

Description

Regression when scaffolding from database: if a unique constraint does not have a name, then the reverse engineering tool throws an exception.

Customer impact

Regression such that customers who were previously able to reverse engineer a database may now not be able to do so. There is no workaround other than changing your database to name constraints.

We do not have good data on how many people have unnamed constraints, but given this was filed early after release it seems reasonable to assume there will be more.

How found

Customer reported on 5.0. This was a case where we didn't realize it was valid to have a constraint like this without it being named. We previously didn't reverse engineer the name, so we never ran into this until 5.0.

Test coverage

This PR includes test for the affected scenario.

Regression?

Yes, from 3.1.

Risk

Low. The fix calls into correct overload of method as required preserving previous path when no name is found. Also, this is a fix to a design-time scenario. Running applications should not be impacted.

@AndriySvyryd
Copy link
Member

Servicing template?

@AndriySvyryd AndriySvyryd changed the title RevEng: Call correct overload of HasIndex when scaffolding constraint… [5.0.1] RevEng: Call correct overload of HasIndex when scaffolding constraint… Nov 12, 2020
@smitpatel
Copy link
Member Author

Once we decide we want to patch this. 😃

@ajcvickers ajcvickers changed the title [5.0.1] RevEng: Call correct overload of HasIndex when scaffolding constraint… [5.0.1] RevEng: Call correct overload of HasIndex when scaffolding constraints without name Nov 15, 2020
@ajcvickers ajcvickers added this to the 5.0.x milestone Nov 15, 2020
@ajcvickers ajcvickers modified the milestones: 5.0.x, 5.0.1 Nov 16, 2020
@ajcvickers
Copy link
Member

Approved by Tactics for 5.0.1.

@smitpatel smitpatel merged commit a07bee7 into release/5.0 Nov 17, 2020
@smitpatel smitpatel deleted the smit/differentkindofindexes branch November 17, 2020 21:46
@ajcvickers ajcvickers removed this from the 5.0.1 milestone Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants