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

VReplication Online DDL: fix classification of virtual columns #8043

Merged

Conversation

shlomi-noach
Copy link
Contributor

Signed-off-by: Shlomi Noach [email protected]

Description

A small fix. While reviewing some work @fatih was doing I realized that the way OnlineDDL/Vrepl identifies virtual columns is incorrect. Per documentation: https://dev.mysql.com/doc/refman/8.0/en/show-columns.html, a virtual columns is identified by either VIRTUAL GENERATED or VIRTUAL STORED.

The existing code only identifies VIRTUAL GENERATED columns; this PR identifies both types of virtual columns.

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@shlomi-noach shlomi-noach merged commit 7fd86a1 into vitessio:master May 6, 2021
@shlomi-noach shlomi-noach deleted the online-ddl-vrepl-detect-virtual branch May 6, 2021 15:13
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