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

sqlparser errors on altering a table's charset #5686

Closed
jmhodges opened this issue Jan 10, 2020 · 1 comment
Closed

sqlparser errors on altering a table's charset #5686

jmhodges opened this issue Jan 10, 2020 · 1 comment

Comments

@jmhodges
Copy link
Contributor

jmhodges commented Jan 10, 2020

Parsing schema statements like

alter table users CHARSET=utf8mb4;

causes sqlparser to return errors like:

syntax error at position 26 near 'charset'

when passed to NewStringTokenizer and then ParseNextStrictDDL.

That statement is a valid syntax for mysql. It sets the table's default charset to utf8mb4;

@jmhodges jmhodges changed the title sqlparser errors on alerting a table's charset sqlparser errors on altering a table's charset Jan 10, 2020
@jmhodges
Copy link
Contributor Author

Closing this in favor of #5705

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