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

[FEATURE] Parsing CONVERT TO Statement in ALTER TABLE Using JSQLParser #2089

Closed
minleejae opened this issue Oct 18, 2024 · 2 comments
Closed
Labels
DDL DDL statement related MySQL MySQL specific issue Sponsor needed

Comments

@minleejae
Copy link
Contributor

Grammar or Syntax Description

  • The CONVERT TO CHARACTER SET clause in ALTER TABLE statements is not correctly parsed by JSQLParser.
  • The parser treats the operation as UNSPECIFIC instead of the appropriate operation type.

SQL Example

ALTER TABLE test_table CONVERT TO CHARACTER SET utf8mb4;

Additional context

  • Applicable RDBMS: MySQL 8.0
  • JSQLParser: 5.0

The parsing succeeds without errors, but I believe it is necessary to add an appropriate CONVERT or AlterOperation type to handle this clause correctly.

@manticore-projects manticore-projects added MySQL MySQL specific issue DDL DDL statement related Sponsor needed labels Oct 18, 2024
@manticore-projects
Copy link
Contributor

Greetings!
You will need to provide or sponsor an implementation to make this happen.

@manticore-projects
Copy link
Contributor

Solved via #2097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL DDL statement related MySQL MySQL specific issue Sponsor needed
Projects
None yet
Development

No branches or pull requests

3 participants
@manticore-projects @minleejae and others