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-19.1: sql: validate computed columns during ALTER TABLE #36575

Merged
merged 1 commit into from
Apr 7, 2019
Merged

release-19.1: sql: validate computed columns during ALTER TABLE #36575

merged 1 commit into from
Apr 7, 2019

Conversation

maddyblue
Copy link
Contributor

Backport 1/1 commits from #36518.

/cc @cockroachdb/release


Previously these were only validated during CREATE, allowing the creation
of incorrect columns. validateComputedColumn has removed its dependency
on the tree.CreateTable struct so that the alter code can use it. Because
of this, all FKs must be computed prior to the computed validate checks.

Fixes #36036

Release note (bug fix): Correctly validate computed columns during ALTER
TABLE ADD COLUMN.

Previously these were only validated during CREATE, allowing the creation
of incorrect columns. validateComputedColumn has removed its dependency
on the tree.CreateTable struct so that the alter code can use it. Because
of this, all FKs must be computed prior to the computed validate checks.

Fixes #36036

Release note (bug fix): Correctly validate computed columns during ALTER
TABLE ADD COLUMN.
@maddyblue maddyblue requested review from vivekmenezes and a team April 5, 2019 16:56
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@maddyblue maddyblue merged commit 2eb3f60 into cockroachdb:release-19.1 Apr 7, 2019
@maddyblue maddyblue deleted the backport19.1-36518 branch April 7, 2019 17:16
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