Skip to content

MySQL: ALTER TABLE RENAME AS #1965

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

altmannmarcelo
Copy link

Add support for RENAME AS in ALTER TABLE. This is a MySQL extension.

Add support for RENAME AS in ALTER TABLE. This is a MySQL extension.
Comment on lines +267 to 268
to_keyword: bool,
table_name: ObjectName,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we introduce a wrapper enum to encode this new alternative behavior? thinking something like

enum RenameTableNameKind {
    As(ObjectName),
    To(ObjectName)
}
RenameTable { table_name: RenameTableNameKind }

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