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

The syntax of mysql RENAME TABLE tb1 TO tb2 is not supported. #1582

Open
charmfocus opened this issue Dec 8, 2024 · 1 comment
Open

The syntax of mysql RENAME TABLE tb1 TO tb2 is not supported. #1582

charmfocus opened this issue Dec 8, 2024 · 1 comment

Comments

@charmfocus
Copy link

charmfocus commented Dec 8, 2024

    let sql = "RENAME TABLE `test`.`test` TO `test`.`test2`";

    let dialect = MySqlDialect {};
    let ast = Parser::parse_sql(&dialect, sql).unwrap();

    println!("AST: {:#?}", ast);

output error:

called `Result::unwrap()` on an `Err` value: ParserError("Expected: an SQL statement, found: RENAME at Line: 1, Column: 1")
@alamb
Copy link
Contributor

alamb commented Dec 12, 2024

Thanks for the report @charmfocus . We would welcome a PR with tests to improve support

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

No branches or pull requests

2 participants