Skip to content
Changelog
fixtext-data

SQL Formatter v1.2 — minify respects each dialect's comments

v1.2

Minify now handles each dialect's comments. A MySQL, MariaDB or BigQuery # comment, or a Snowflake // comment, used to be kept with the line break after it removed, so the rest of the query turned into part of the comment. Those comments are now dropped like the others.

Outside SQL Server, SQLite and Standard SQL, a [ is no longer treated as the start of a quoted name. In PostgreSQL an array such as ARRAY['a]', 'x y'] used to break the quoting and collapse the spaces in the second string. Text inside strings is now left alone.

All changes