-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sql: fix ALTER PRIMARY KEY with virtual columns on the table #62843
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay testing!! nice find
btw, optimizer team just added VIRTUAL columns this release, so i think only the 21.1 backport is needed.
CONSTRAINT "primary" PRIMARY KEY (new_pk ASC), | ||
UNIQUE INDEX table_with_virtual_cols_id_key (id ASC), | ||
FAMILY fam_0_new_pk (new_pk), | ||
FAMILY fam_1_id (id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like fam_1_id isn't expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe, this randomised family stuff man
Release note (bug fix): Fix a bug where ALTER PRIMARY KEY would fail if the table contained virtual columns.
bors r=rafiss |
Build failed: |
bors r=rafiss |
Build succeeded: |
Nice find, thanks for fixing! |
Release note (bug fix): Fix a bug where ALTER PRIMARY KEY would fail if
the table contained virtual columns.