-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot parse column rename sql without COLUMN keyword #1516
Labels
Comments
The supported Syntax is shown here: http://217.160.215.75:8080/jsqlformatter/_static/JSqlParserCC.xhtml#AlterTable Indeed the |
manticore-projects
added a commit
to manticore-projects/JSqlParser
that referenced
this issue
May 9, 2022
wumpz
pushed a commit
that referenced
this issue
May 11, 2022
* Adjust Gradle to JUnit 5 Parallel Test execution Gradle Caching Explicitly request for latest JavaCC 7.0.10 * Do not mark SpeedTest for concurrent execution * Remove unused imports * Adjust Gradle to JUnit 5 Parallel Test execution Gradle Caching Explicitly request for latest JavaCC 7.0.10 * Do not mark SpeedTest for concurrent execution * Remove unused imports * `RENAME ... TO ...` without `COLUMN` keyword Fixes #1516
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Cannot parse column rename sql without COLUMN keyword.
To Reproduce
Steps to reproduce the behavior:
Example SQL
ALTER TABLE table_a RENAME col_a TO col_b;
Parsing this SQL using JSqlParser with this statements
CCJSqlParserUtil.parse("ALTER TABLE table_a RENAME col_a TO col_b");
Exception
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "col_a" <S_IDENTIFIER>
at line 1, column 28.
Was expecting:
System
The text was updated successfully, but these errors were encountered: