sqlvalidator icon indicating copy to clipboard operation
sqlvalidator copied to clipboard

Comments are not handled correctly

Open aymen-k opened this issue 3 years ago • 0 comments

Hello David 👋

I just noticed that comments are not handled correctly when formatting the SQL queries. For example

SELECT * FROM table_a
WHERE user_name="john doe"
/* just a comment */
ORDER BY user_id

is transformed into

SELECT *
FROM table_a
WHERE user_name="john doe" / *

PS: Thanks for the tool!

aymen-k avatar Feb 11 '22 10:02 aymen-k