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

Add support for MYSQL's RENAME TABLE #1616

Merged
merged 8 commits into from
Jan 1, 2025

Conversation

wugeer
Copy link
Contributor

@wugeer wugeer commented Dec 24, 2024

This PR supports RENAME TABLE clause for mysql dialect,. For more information, please refer to:
https://dev.mysql.com/doc/refman/9.1/en/rename-table.html

This resolves issue #1582

src/parser/mod.rs Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
src/dialect/mod.rs Outdated Show resolved Hide resolved
src/ast/mod.rs Outdated Show resolved Hide resolved
tests/sqlparser_common.rs Outdated Show resolved Hide resolved
src/ast/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
wugeer and others added 3 commits December 27, 2024 22:02
@wugeer wugeer requested a review from iffyio December 27, 2024 15:25
src/dialect/mod.rs Outdated Show resolved Hide resolved
src/ast/mod.rs Outdated Show resolved Hide resolved
@iffyio iffyio changed the title Add support for MYSQL's RENAME TABLE expr Add support for MYSQL's RENAME TABLE Dec 28, 2024
@wugeer wugeer requested a review from iffyio December 29, 2024 13:25
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM!
cc @alamb

src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
@iffyio iffyio merged commit 94ea206 into apache:main Jan 1, 2025
9 checks passed
hansott added a commit to hansott/datafusion-sqlparser-rs that referenced this pull request Jan 7, 2025
…o patch-carriage-return

* 'main' of github.com:hansott/datafusion-sqlparser-rs:
  Add support for MySQL's INSERT INTO ... SET syntax (apache#1641)
  Add support for Snowflake LIST and REMOVE (apache#1639)
  Add support for the SQL OVERLAPS predicate (apache#1638)
  Add support for various Snowflake grantees (apache#1640)
  Add support for USE SECONDARY ROLE (vs. ROLES) (apache#1637)
  Correctly tokenize nested comments (apache#1629)
  Add support for MYSQL's `RENAME TABLE` (apache#1616)
  Test benchmarks and Improve benchmark README.md (apache#1627)
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