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

PT-2375 - fixed pt-table-sync for tables with generated columns #860

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

hpoettker
Copy link

The PR is intended to resolve this issue: https://perconadev.atlassian.net/browse/PT-2375

The tests added with pt-2375.t both fail with the current code base when executing the generated DML statements. With the proposed change, they run successfully. They test that both REPLACE and UPDATE statements are generated correctly by pt-table-sync when applied to tables with generated columns.

The code is my own creation and it can be distributed under the GPL2 licence.

  • The contributed code is licensed under GPL v2.0
  • Contributor Licence Agreement (CLA) is signed
  • util/update-modules has been ran
  • Documentation updated
  • Test suite update

@it-percona-cla
Copy link

it-percona-cla commented Sep 10, 2024

CLA assistant check
All committers have signed the CLA.

@hpoettker hpoettker force-pushed the PT-2375_table_sync_with_generated_columns branch from 5ec39fb to a29a293 Compare September 15, 2024 19:58
@hpoettker
Copy link
Author

I updated the PR such that the change is also included in lib/ChangeHandler.pm. pt-table-sync is the only affected tool by this change.

@hpoettker hpoettker force-pushed the PT-2375_table_sync_with_generated_columns branch 2 times, most recently from 151c22d to 6549655 Compare September 15, 2024 22:14
Previously, pt-table-sync generated DML statements that included
the generated columns of a table, which is however rejected by
the database and not necessary for the required sync statements.
@hpoettker hpoettker force-pushed the PT-2375_table_sync_with_generated_columns branch from 6549655 to 5f14441 Compare November 14, 2024 22:53
@hpoettker
Copy link
Author

Thanks so much for the massive effort to adjust the code base to MySQL 8.4!

I've rebased the changes on the latest commit in 3.x.

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.

2 participants