diff --git a/.changeset/pgsql-meaning-preserved.md b/.changeset/pgsql-meaning-preserved.md deleted file mode 100644 index f87864c7..00000000 --- a/.changeset/pgsql-meaning-preserved.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"prettier-plugin-postgresql": patch ---- - -Fix formatting that changed what SQL means or produced SQL that doesn't parse: - -- `UNION` / `INTERSECT` / `EXCEPT` kept their `WITH`, `ORDER BY`, `LIMIT` and locking clauses, and operands are parenthesized where needed. -- `ARRAY(subquery)`, `(f(x)).*`, `ROW(...)` and row comparisons with a subquery are preserved. -- Type names resolve as written (`float8`, `"char"`, `int[3]`, `pg_catalog.text`), and casts to `interval` of non-literals stay casts. -- Constraints keep every clause: `EXCLUDE`, `MATCH FULL`, `NO INHERIT`, `NOT VALID`, `INCLUDE` / `WITH` / `USING INDEX TABLESPACE`, `ON DELETE SET NULL (cols)`, identity options, table-level `DEFERRABLE`, and `USING INDEX`. -- `ON CONFLICT` keeps expression targets and the partial-index `WHERE`. -- `ALTER ... RENAME` works for every object kind, including `ALTER TYPE ... RENAME VALUE`, which had become `ADD VALUE`. -- `DROP TRIGGER / POLICY / RULE ... ON`, `DROP OPERATOR CLASS ... USING`, `DROP CAST` and `DROP TRANSFORM` are printed correctly. -- Kept: `COMMIT AND CHAIN`, `ALTER COLUMN ... TYPE ... USING`, `ALTER TYPE ... ADD / DROP / ALTER ATTRIBUTE`, VACUUM / ANALYZE option values, `current_timestamp(0)`-style precision, schema-qualified `OPERATOR(...)`, SQL/JSON `PASSING`, wrapper, quotes and `ON EMPTY` / `ON ERROR` clauses, and JSON aggregate `ORDER BY` / `FILTER` / `OVER`. -- Quotes in enum values are escaped, and `DO` blocks no longer gain a `LANGUAGE plpgsql`. diff --git a/.changeset/pgsql-qualified-operator-sublink.md b/.changeset/pgsql-qualified-operator-sublink.md deleted file mode 100644 index 60ed5172..00000000 --- a/.changeset/pgsql-qualified-operator-sublink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-postgresql": patch ---- - -A schema-qualified operator in `ANY` / `ALL` (`a OPERATOR(pg_catalog.=) ANY (...)`) is kept; it printed the schema name as the operator, which doesn't parse. diff --git a/.changeset/pgsql-values-ctes.md b/.changeset/pgsql-values-ctes.md deleted file mode 100644 index 746a9571..00000000 --- a/.changeset/pgsql-values-ctes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-postgresql": patch ---- - -A `VALUES` query keeps its `WITH` clause (`WITH c AS (...) VALUES (...)`); the CTEs were dropped. diff --git a/.changeset/tsql-alter-add.md b/.changeset/tsql-alter-add.md deleted file mode 100644 index 1a3ee953..00000000 --- a/.changeset/tsql-alter-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`ALTER TABLE ... ADD` keeps `DEFAULT ... WITH VALUES` (which fills existing rows), `PERIOD FOR SYSTEM_TIME (...)` (it printed `add ;`) and `INDEX` definitions; a masking function containing a quote is escaped. diff --git a/.changeset/tsql-bracket-escape.md b/.changeset/tsql-bracket-escape.md deleted file mode 100644 index 5d006050..00000000 --- a/.changeset/tsql-bracket-escape.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Bracketed names containing `]` keep it escaped (`[a]]b]`); it was printed unescaped, which doesn't parse. diff --git a/.changeset/tsql-collate-any-expression.md b/.changeset/tsql-collate-any-expression.md deleted file mode 100644 index abd9fc48..00000000 --- a/.changeset/tsql-collate-any-expression.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`COLLATE` is kept after any expression — literals, variables, function calls, `CAST`, `CASE`, subqueries and parenthesized expressions. It was only kept after column names and silently dropped elsewhere, changing how comparisons and sorts behave. diff --git a/.changeset/tsql-comments-never-dropped.md b/.changeset/tsql-comments-never-dropped.md deleted file mode 100644 index 3e426f82..00000000 --- a/.changeset/tsql-comments-never-dropped.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Comments inside a statement are no longer dropped. A comment after the last select item, a table name, a join condition, a column definition, a CTE body or a `UNION` disappeared; every comment is now printed where it was, or at worst right after its statement. Line comments in fill-packed lists (`UPDATE ... SET`, compact lists) also end their line, instead of swallowing the items that followed. diff --git a/.changeset/tsql-create-schema-elements.md b/.changeset/tsql-create-schema-elements.md deleted file mode 100644 index 39871c10..00000000 --- a/.changeset/tsql-create-schema-elements.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`CREATE SCHEMA` keeps the tables, views and permissions created with it (`CREATE SCHEMA s CREATE TABLE ... GRANT ...`); they were dropped. diff --git a/.changeset/tsql-current-of.md b/.changeset/tsql-current-of.md deleted file mode 100644 index 34e965a9..00000000 --- a/.changeset/tsql-current-of.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`UPDATE` / `DELETE ... WHERE CURRENT OF cursor` kept its `WHERE`: it was dropped, which turned a one-row change into one affecting every row. diff --git a/.changeset/tsql-cursor-global.md b/.changeset/tsql-cursor-global.md deleted file mode 100644 index b255d628..00000000 --- a/.changeset/tsql-cursor-global.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`OPEN`, `FETCH`, `CLOSE` and `DEALLOCATE GLOBAL cursor` keep `GLOBAL` — without it a local cursor of the same name is used — and `DECLARE c INSENSITIVE SCROLL CURSOR` keeps its ISO form instead of becoming invalid. diff --git a/.changeset/tsql-dml-option-merge.md b/.changeset/tsql-dml-option-merge.md deleted file mode 100644 index c370b7fd..00000000 --- a/.changeset/tsql-dml-option-merge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Kept clauses that were dropped from DML: `OPTION (...)` query hints on `INSERT`, `UPDATE`, `DELETE` and `MERGE`; column names on a derived table (`(SELECT ...) AS s (a, b)`); and `MERGE ... INSERT DEFAULT VALUES`, which printed as `insert values ()`. diff --git a/.changeset/tsql-double-negation.md b/.changeset/tsql-double-negation.md deleted file mode 100644 index 4a3988b2..00000000 --- a/.changeset/tsql-double-negation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -A double negation such as `- -a` printed as `--a`, which starts a comment and drops the rest of the line; it now prints `- -a`. diff --git a/.changeset/tsql-drop-index.md b/.changeset/tsql-drop-index.md deleted file mode 100644 index 8f379019..00000000 --- a/.changeset/tsql-drop-index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`DROP INDEX` keeps its `WITH (ONLINE = ON, MOVE TO ...)` options, and the old `DROP INDEX table.index` form is supported (it printed `drop index ;`). diff --git a/.changeset/tsql-execute-forms.md b/.changeset/tsql-execute-forms.md deleted file mode 100644 index 17b95909..00000000 --- a/.changeset/tsql-execute-forms.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`EXECUTE` keeps everything it was written with: `AS USER` / `AS LOGIN = 'name'`, pass-through parameters for `EXECUTE ('...', 1) AT server`, a bracketed linked-server name, a procedure number (`dbo.p;2`), and `WITH RESULT SETS` — which was found by searching the text, so a string containing those words produced broken output. diff --git a/.changeset/tsql-function-param-defaults.md b/.changeset/tsql-function-param-defaults.md deleted file mode 100644 index 7ec72ec1..00000000 --- a/.changeset/tsql-function-param-defaults.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Function parameters keep their defaults (`@a int = 1`) and `READONLY`; they were dropped. diff --git a/.changeset/tsql-inline-indexes.md b/.changeset/tsql-inline-indexes.md deleted file mode 100644 index 197b34ab..00000000 --- a/.changeset/tsql-inline-indexes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Indexes declared in a table body are kept: column-level `INDEX ix` in `CREATE TABLE`, and `INDEX` definitions in table variables and table types, along with a table type's `WITH (MEMORY_OPTIMIZED = ON)`. All were dropped. diff --git a/.changeset/tsql-inline-off.md b/.changeset/tsql-inline-off.md deleted file mode 100644 index ad3030eb..00000000 --- a/.changeset/tsql-inline-off.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`WITH INLINE = OFF` on a function stays `OFF`; it printed as `INLINE`, which turns scalar UDF inlining on. diff --git a/.changeset/tsql-method-case.md b/.changeset/tsql-method-case.md deleted file mode 100644 index 05ce8967..00000000 --- a/.changeset/tsql-method-case.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`SET @x.modify(...)` keeps the method name's case with `sqlKeywordCase: "upper"`: xml and CLR type methods are case-sensitive, so `@x.MODIFY(...)` failed to run. diff --git a/.changeset/tsql-module-options.md b/.changeset/tsql-module-options.md deleted file mode 100644 index 24a1305e..00000000 --- a/.changeset/tsql-module-options.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Triggers keep their `WITH` options (`EXECUTE AS`, `ENCRYPTION`, ...), procedures keep `FOR REPLICATION`, and an `EXECUTE AS 'principal'` containing a quote is escaped. diff --git a/.changeset/tsql-nested-comment-once.md b/.changeset/tsql-nested-comment-once.md deleted file mode 100644 index ee477dcc..00000000 --- a/.changeset/tsql-nested-comment-once.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -A trailing comment on a statement inside `IF`, `WHILE` or another block is printed once; it was repeated after the block. diff --git a/.changeset/tsql-odbc-functions.md b/.changeset/tsql-odbc-functions.md deleted file mode 100644 index b83baf1b..00000000 --- a/.changeset/tsql-odbc-functions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -ODBC function escapes such as `{fn UCASE('a')}` keep their `{fn ...}` wrapper; without it the functions don't exist. diff --git a/.changeset/tsql-rebuild-partition.md b/.changeset/tsql-rebuild-partition.md deleted file mode 100644 index 2a1deae1..00000000 --- a/.changeset/tsql-rebuild-partition.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`ALTER TABLE ... REBUILD` without a partition no longer prints an empty `PARTITION =`, and partition numbers given as variables (`REBUILD PARTITION = @p`, `SWITCH PARTITION @p`) are kept. diff --git a/.changeset/tsql-same-line-comments.md b/.changeset/tsql-same-line-comments.md deleted file mode 100644 index fc9ffe4d..00000000 --- a/.changeset/tsql-same-line-comments.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -A comment at the end of a statement inside a block stays on that statement's line. A comment after the last statement of a `TRY` block moved to the top of the `CATCH` block. diff --git a/.changeset/tsql-select-into-on.md b/.changeset/tsql-select-into-on.md deleted file mode 100644 index ade818d8..00000000 --- a/.changeset/tsql-select-into-on.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`SELECT ... INTO t ON filegroup` keeps its `ON filegroup`. diff --git a/.changeset/tsql-storage-clauses.md b/.changeset/tsql-storage-clauses.md deleted file mode 100644 index ec74274f..00000000 --- a/.changeset/tsql-storage-clauses.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Storage clauses are kept on indexes and constraints: `ON scheme(column)` keeps its partitioning column, and `ON filegroup` / `FILESTREAM_ON` are no longer dropped from constraints, inline indexes, `CREATE INDEX` and columnstore indexes. Column-level `PRIMARY KEY` / `UNIQUE` also keep their `WITH (...)` options. diff --git a/.changeset/tsql-transaction-names.md b/.changeset/tsql-transaction-names.md deleted file mode 100644 index 5156fab8..00000000 --- a/.changeset/tsql-transaction-names.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -Transaction statements keep everything they were written with: names and savepoints given as variables (`ROLLBACK TRAN @savepoint` had become a full `ROLLBACK`), `COMMIT ... WITH (DELAYED_DURABILITY = ON)`, and `WITH MARK` descriptions that are variables or contain quotes. diff --git a/.changeset/tsql-view-cte.md b/.changeset/tsql-view-cte.md deleted file mode 100644 index 16515316..00000000 --- a/.changeset/tsql-view-cte.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -A view whose body starts with `WITH` keeps its CTEs (and `XMLNAMESPACES`); they were dropped, leaving a view that referenced a missing name. View column names that need brackets keep them. diff --git a/.changeset/tsql-waitfor-statement.md b/.changeset/tsql-waitfor-statement.md deleted file mode 100644 index 85f8eaf4..00000000 --- a/.changeset/tsql-waitfor-statement.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -`WAITFOR (RECEIVE ...), TIMEOUT n` and `WAITFOR (GET CONVERSATION GROUP ...)` are kept; they printed as `waitfor delay ;`. diff --git a/.changeset/tsql-window-order.md b/.changeset/tsql-window-order.md deleted file mode 100644 index ff6a86ff..00000000 --- a/.changeset/tsql-window-order.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"prettier-plugin-tsql": patch ---- - -A `WINDOW` clause is printed before `ORDER BY`, where T-SQL requires it; after it, the output didn't parse. diff --git a/packages/plugin-pgsql/CHANGELOG.md b/packages/plugin-pgsql/CHANGELOG.md index 84c953dc..b5ad2a9b 100644 --- a/packages/plugin-pgsql/CHANGELOG.md +++ b/packages/plugin-pgsql/CHANGELOG.md @@ -1,5 +1,24 @@ # prettier-plugin-postgresql +## 0.3.1 + +### Patch Changes + +- bdd66bc: Fix formatting that changed what SQL means or produced SQL that doesn't parse: + + - `UNION` / `INTERSECT` / `EXCEPT` kept their `WITH`, `ORDER BY`, `LIMIT` and locking clauses, and operands are parenthesized where needed. + - `ARRAY(subquery)`, `(f(x)).*`, `ROW(...)` and row comparisons with a subquery are preserved. + - Type names resolve as written (`float8`, `"char"`, `int[3]`, `pg_catalog.text`), and casts to `interval` of non-literals stay casts. + - Constraints keep every clause: `EXCLUDE`, `MATCH FULL`, `NO INHERIT`, `NOT VALID`, `INCLUDE` / `WITH` / `USING INDEX TABLESPACE`, `ON DELETE SET NULL (cols)`, identity options, table-level `DEFERRABLE`, and `USING INDEX`. + - `ON CONFLICT` keeps expression targets and the partial-index `WHERE`. + - `ALTER ... RENAME` works for every object kind, including `ALTER TYPE ... RENAME VALUE`, which had become `ADD VALUE`. + - `DROP TRIGGER / POLICY / RULE ... ON`, `DROP OPERATOR CLASS ... USING`, `DROP CAST` and `DROP TRANSFORM` are printed correctly. + - Kept: `COMMIT AND CHAIN`, `ALTER COLUMN ... TYPE ... USING`, `ALTER TYPE ... ADD / DROP / ALTER ATTRIBUTE`, VACUUM / ANALYZE option values, `current_timestamp(0)`-style precision, schema-qualified `OPERATOR(...)`, SQL/JSON `PASSING`, wrapper, quotes and `ON EMPTY` / `ON ERROR` clauses, and JSON aggregate `ORDER BY` / `FILTER` / `OVER`. + - Quotes in enum values are escaped, and `DO` blocks no longer gain a `LANGUAGE plpgsql`. + +- 4750d81: A schema-qualified operator in `ANY` / `ALL` (`a OPERATOR(pg_catalog.=) ANY (...)`) is kept; it printed the schema name as the operator, which doesn't parse. +- c504901: A `VALUES` query keeps its `WITH` clause (`WITH c AS (...) VALUES (...)`); the CTEs were dropped. + ## 0.3.0 ### Minor Changes diff --git a/packages/plugin-pgsql/package.json b/packages/plugin-pgsql/package.json index 56d5258b..b41a12e3 100644 --- a/packages/plugin-pgsql/package.json +++ b/packages/plugin-pgsql/package.json @@ -1,6 +1,6 @@ { "name": "prettier-plugin-postgresql", - "version": "0.3.0", + "version": "0.3.1", "description": "Prettier plugin for PostgreSQL using the official libpg_query parser", "author": "Mike Schall", "license": "MIT", diff --git a/packages/plugin-tsql/CHANGELOG.md b/packages/plugin-tsql/CHANGELOG.md index b589a53b..6a842d28 100644 --- a/packages/plugin-tsql/CHANGELOG.md +++ b/packages/plugin-tsql/CHANGELOG.md @@ -1,5 +1,36 @@ # prettier-plugin-tsql +## 0.9.1 + +### Patch Changes + +- 385d3b5: `ALTER TABLE ... ADD` keeps `DEFAULT ... WITH VALUES` (which fills existing rows), `PERIOD FOR SYSTEM_TIME (...)` (it printed `add ;`) and `INDEX` definitions; a masking function containing a quote is escaped. +- 7d4fc53: Bracketed names containing `]` keep it escaped (`[a]]b]`); it was printed unescaped, which doesn't parse. +- d3d3ac0: `COLLATE` is kept after any expression — literals, variables, function calls, `CAST`, `CASE`, subqueries and parenthesized expressions. It was only kept after column names and silently dropped elsewhere, changing how comparisons and sorts behave. +- a84657d: Comments inside a statement are no longer dropped. A comment after the last select item, a table name, a join condition, a column definition, a CTE body or a `UNION` disappeared; every comment is now printed where it was, or at worst right after its statement. Line comments in fill-packed lists (`UPDATE ... SET`, compact lists) also end their line, instead of swallowing the items that followed. +- 918848b: `CREATE SCHEMA` keeps the tables, views and permissions created with it (`CREATE SCHEMA s CREATE TABLE ... GRANT ...`); they were dropped. +- bac1614: `UPDATE` / `DELETE ... WHERE CURRENT OF cursor` kept its `WHERE`: it was dropped, which turned a one-row change into one affecting every row. +- 7e2a4b4: `OPEN`, `FETCH`, `CLOSE` and `DEALLOCATE GLOBAL cursor` keep `GLOBAL` — without it a local cursor of the same name is used — and `DECLARE c INSENSITIVE SCROLL CURSOR` keeps its ISO form instead of becoming invalid. +- 55014c6: Kept clauses that were dropped from DML: `OPTION (...)` query hints on `INSERT`, `UPDATE`, `DELETE` and `MERGE`; column names on a derived table (`(SELECT ...) AS s (a, b)`); and `MERGE ... INSERT DEFAULT VALUES`, which printed as `insert values ()`. +- b365ff1: A double negation such as `- -a` printed as `--a`, which starts a comment and drops the rest of the line; it now prints `- -a`. +- 77efa73: `DROP INDEX` keeps its `WITH (ONLINE = ON, MOVE TO ...)` options, and the old `DROP INDEX table.index` form is supported (it printed `drop index ;`). +- 5b8d23b: `EXECUTE` keeps everything it was written with: `AS USER` / `AS LOGIN = 'name'`, pass-through parameters for `EXECUTE ('...', 1) AT server`, a bracketed linked-server name, a procedure number (`dbo.p;2`), and `WITH RESULT SETS` — which was found by searching the text, so a string containing those words produced broken output. +- 95e1522: Function parameters keep their defaults (`@a int = 1`) and `READONLY`; they were dropped. +- a64084f: Indexes declared in a table body are kept: column-level `INDEX ix` in `CREATE TABLE`, and `INDEX` definitions in table variables and table types, along with a table type's `WITH (MEMORY_OPTIMIZED = ON)`. All were dropped. +- a8d12f0: `WITH INLINE = OFF` on a function stays `OFF`; it printed as `INLINE`, which turns scalar UDF inlining on. +- 0729aa3: `SET @x.modify(...)` keeps the method name's case with `sqlKeywordCase: "upper"`: xml and CLR type methods are case-sensitive, so `@x.MODIFY(...)` failed to run. +- 6ec04eb: Triggers keep their `WITH` options (`EXECUTE AS`, `ENCRYPTION`, ...), procedures keep `FOR REPLICATION`, and an `EXECUTE AS 'principal'` containing a quote is escaped. +- b2057bd: A trailing comment on a statement inside `IF`, `WHILE` or another block is printed once; it was repeated after the block. +- 5b4f720: ODBC function escapes such as `{fn UCASE('a')}` keep their `{fn ...}` wrapper; without it the functions don't exist. +- 90e0963: `ALTER TABLE ... REBUILD` without a partition no longer prints an empty `PARTITION =`, and partition numbers given as variables (`REBUILD PARTITION = @p`, `SWITCH PARTITION @p`) are kept. +- 5546526: A comment at the end of a statement inside a block stays on that statement's line. A comment after the last statement of a `TRY` block moved to the top of the `CATCH` block. +- 08d5f5a: `SELECT ... INTO t ON filegroup` keeps its `ON filegroup`. +- 9dd2b7e: Storage clauses are kept on indexes and constraints: `ON scheme(column)` keeps its partitioning column, and `ON filegroup` / `FILESTREAM_ON` are no longer dropped from constraints, inline indexes, `CREATE INDEX` and columnstore indexes. Column-level `PRIMARY KEY` / `UNIQUE` also keep their `WITH (...)` options. +- 9ebdf20: Transaction statements keep everything they were written with: names and savepoints given as variables (`ROLLBACK TRAN @savepoint` had become a full `ROLLBACK`), `COMMIT ... WITH (DELAYED_DURABILITY = ON)`, and `WITH MARK` descriptions that are variables or contain quotes. +- 4b4f71c: A view whose body starts with `WITH` keeps its CTEs (and `XMLNAMESPACES`); they were dropped, leaving a view that referenced a missing name. View column names that need brackets keep them. +- 0924b2d: `WAITFOR (RECEIVE ...), TIMEOUT n` and `WAITFOR (GET CONVERSATION GROUP ...)` are kept; they printed as `waitfor delay ;`. +- 1093422: A `WINDOW` clause is printed before `ORDER BY`, where T-SQL requires it; after it, the output didn't parse. + ## 0.9.0 ### Minor Changes diff --git a/packages/plugin-tsql/package.json b/packages/plugin-tsql/package.json index b8e0c285..9fc358c9 100644 --- a/packages/plugin-tsql/package.json +++ b/packages/plugin-tsql/package.json @@ -1,6 +1,6 @@ { "name": "prettier-plugin-tsql", - "version": "0.9.0", + "version": "0.9.1", "description": "Prettier plugin for T-SQL (Microsoft SQL Server) using the official ScriptDom parser", "author": "Mike Schall", "license": "MIT",