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.2: sql: fix DROP COLUMN bug which ignores containing indexes #54262

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Sep 11, 2020

Backport 1/1 commits from #54228.

/cc @cockroachdb/release


AllNonDropIndexes returns an array of pointers to index descriptors.
After deleting one of the indexes, the array of pointers point
to a different element. This ends up accidentally missing some
indexes that require deletion.

Resolves #54196 (introduced in #51661).

Release note (bug fix): Fixed a bug introduced in earlier v20.2 versions
where when attempting to drop a column which is referenced by multiple
indexes fails to drop all relevant indexes.

AllNonDropIndexes returns an array of pointers to index descriptors.
After deleting one of the indexes, the array of pointers point
to a different element. This ends up accidentally missing some
indexes that require deletion.

Release note (bug fix): Fixed a bug introduced in earlier v20.2 versions
where when attempting to drop a column which is referenced by multiple
indexes fails to drop all relevant indexes.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan mentioned this pull request Sep 11, 2020
40 tasks
@thoszhang
Copy link
Contributor

I approved this because it was in the Schema section of the backport request list.

@otan otan merged commit 4182aaa into cockroachdb:release-20.2 Sep 14, 2020
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.

3 participants