Skip to content

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

@SangsooYoo

Description

@SangsooYoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions