Skip to content

Generated column as part of UNIQUE (or PRIMARY) KEY #919

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

Merged

Conversation

shlomi-noach
Copy link
Contributor

Resubmission of openark#13 from downstream.

Supporting the case where any unique key, and in particular the PRIMARY KEY, includes a GENERATED column.

A user with a large database deployment, who initially reported the issue, has confirmed the fix works as expected.

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

Support a complete ALTER TABLE statement in --alter
Initial commit: towards setting up a test suite

Signed-off-by: Shlomi Noach <[email protected]>
…original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
Signed-off-by: Shlomi Noach <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
Copying AUTO_INCREMENT value to ghost table
@shlomi-noach
Copy link
Contributor Author

At this time this PR appears to contain many more commits than actually changed; this is because there's still other outstanding requests to merge upstream. For reference, the specific changes to this PR are https://github.com/openark/gh-ost/pull/13/files

Copy link
Collaborator

@timvaillancourt timvaillancourt left a comment

Choose a reason for hiding this comment

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

Thanks @shlomi-noach 👍

@timvaillancourt
Copy link
Collaborator

@shlomi-noach 👋 this is being tested now!

Could you re-base this branch so it's ready to merge after a few days of testing? 🙇

@shlomi-noach
Copy link
Contributor Author

Rebased!

@timvaillancourt
Copy link
Collaborator

Thanks @shlomi-noach this passed tests for over a week. Merging 👍

@timvaillancourt timvaillancourt merged commit 36c669d into github:master May 24, 2021
@shlomi-noach shlomi-noach deleted the unique-key-generated-column-upstream branch May 25, 2021 06:10
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.

2 participants