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

please add the "mysql" in Format language parameter #24

Open
SangsooYoo opened this issue Oct 11, 2022 · 1 comment
Open

please add the "mysql" in Format language parameter #24

SangsooYoo opened this issue Oct 11, 2022 · 1 comment

Comments

@SangsooYoo
Copy link

Hi guys.
I found a small bug while using your module.
If a query include '!=' and invoke getStatement with Format paramet (language "sql") , it's transpiled to "! =".
So I met the syntax error because of '! ='. it should be '!=' (the space between ! and = should be removed) in mysql.
I traced what happen if I pass "sql" in language parameter. and the sql formatter module in dependency list transpiled it like that.
and I figure out that it's transpiled well if I pass "mysql" in langauge parameter by sql formatter.
Simply, this bug will be gone if you guys put "mysql" keyword in language parameter whitelist.
Thanks.

@OldBlackJoe
Copy link
Owner

hello, could you please make pull requrst for this?

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