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

release-20.1: sql: fix error when adding and dropping a constraint in same txn. #62881

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

postamar
Copy link
Contributor

Backport 1/1 commits from #62732.

/cc @cockroachdb/release


This commit fixes a bug in which an internal error would be returned
when dropping a foreign key currently in the table's mutations slice.
Instead, we return a more appropriate unimplemented error.

Fixes #60786.

Release note (bug fix): Dropping a foreign key that was added in the
same transaction no longer triggers an internal error. This bug has been
present since at least version 20.1.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@postamar postamar requested a review from a team March 31, 2021 16:45
@postamar postamar marked this pull request as draft March 31, 2021 20:01
This commit fixes a bug in which an internal error would be returned
when dropping a foreign key currently in the table's mutations slice.
Instead, we return a more appropriate unimplemented error.

Fixes cockroachdb#60786.

Release note (bug fix): Dropping a foreign key that was added in the
same transaction no longer triggers an internal error. This bug has been
present since at least version 20.1.
@postamar postamar marked this pull request as ready for review March 31, 2021 22:45
Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @postamar)

@postamar postamar merged commit fc34bfc into cockroachdb:release-20.1 Apr 6, 2021
@postamar postamar deleted the backport20.1-62732 branch April 6, 2021 13:18
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.

None yet

3 participants