mybatis-mapper icon indicating copy to clipboard operation
mybatis-mapper copied to clipboard

please add the "mysql" in Format language parameter

Open SangsooYoo opened this issue 1 year ago • 1 comments

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.

SangsooYoo avatar Oct 11 '22 03:10 SangsooYoo

hello, could you please make pull requrst for this?

OldBlackJoe avatar Oct 11 '22 05:10 OldBlackJoe