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 Request] Providing option for ignore mysql special comment. #2808

Open
okhowang opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@okhowang
Copy link
Contributor

okhowang commented Jan 7, 2025

I use go-mysql-server for sql testing and unittest.
there is some sql feature supported by mysql, but not supported by go-mysql-server.
usually, mysql dialect can be wrapper by /*! */ comment which will be ignore by other sql engine, but executed by mysql.
for example

create table a (id bigint) /*! engine=innodb */

go-mysql-server will execute statement in the special comment too.

but not all mysql syntax can be supported by go-mysql-server.
adding/removing partition is the problem to me currently. dolthub/dolt#8744

maybe go-mysql-server can provide a option to DO NOT execute mysql-only code, for keep basic sql work.
as a workaround for the feature not supported by go-mysql-server currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants