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

Failed to parse Mysql CHARACTER SET with COLLATE clause #1544

Open
miniliuke opened this issue Nov 23, 2024 · 0 comments
Open

Failed to parse Mysql CHARACTER SET with COLLATE clause #1544

miniliuke opened this issue Nov 23, 2024 · 0 comments

Comments

@miniliuke
Copy link

When using SQLParser, the following ALTER TABLE statement fails to parse:
ALTER TABLE test.test MODIFY COLUMN v varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL AFTER id,DROP PRIMARY KEY,ADD PRIMARY KEY (id, v) USING BTREE
The issue seems to be related to the presence of the COLLATE latin1_swedish_ci clause. If the COLLATE clause is removed, the statement parses successfully.

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

1 participant