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

it occurs error when capturing ddl in mysql 8 #2112

Open
jackjoesh opened this issue Sep 23, 2024 · 1 comment
Open

it occurs error when capturing ddl in mysql 8 #2112

jackjoesh opened this issue Sep 23, 2024 · 1 comment

Comments

@jackjoesh
Copy link

jackjoesh commented Sep 23, 2024

it occurs error when capturing ddl in mysql 8:
Error parsing SQL: 'CREATE DATABASE IF NOT EXISTS test CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ENCRYPTION = 'N''

Its root cause is parsing "ENCRYPTION" node error
If adding "DEFAULT" before ENCRYPTION, like 'CREATE DATABASE IF NOT EXISTS test CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci DEFAULT ENCRYPTION = 'N'' is ok

my maxwell version is 1.40.0
is there any patch for this problem? thanks

@dpy1123
Copy link

dpy1123 commented Sep 23, 2024

you can check mysql_create_database.g4 file, and modify it yourself.
The whole parsing things are all in *.g4 files and using antlr to gen the code. You can alse refer to DDLParserTest for test show cases.

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