Rene Saarsoo

Results 487 comments of Rene Saarsoo

Thanks for reporting. Will look into it when I get a chance. Been a bit busy lately.

Just letting you know that support for SQL Server / Transact-SQL is not in any short- or mid-term plans. For several reasons: - I personally have zero experience with Microsoft...

FYI: Currently there exists some very basic support for unnecessary parentheses removal, which covers cases like these: ```sql -- removal of repeated parenthesis a + ((b + c)) --> a...

Thanks for the suggestion. Currently there's simply no special handling of parenthesized expressions v/s any other. So for example in a simpler FROM clause one would just have a list...

Thanks for reporting. It's a bug in the pretty-printing code, not in the parser. This should be fairly simple to fix. Take a look at: https://github.com/nene/prettier-plugin-sql-cst/blob/master/src/syntax/expr.ts#L43-L58 Currently the code removes...

There is no `isSelect`, but that should be trivial to implement. You want to though cover both plain `type:"select_stmt"` and also `type:"compound_select_stmt"` (the latter is used for e.g. `UNION` of...

You can use [sql-explorer](https://nene.github.io/sql-explorer/) to see what the syntax tree looks like.

Thanks for reporting. Comments being moved slightly is one thing, but getting multiple line-comments on a single line and their order changed is a much more serious issue. Like currently...

I don't really know why this happens, because I've left the handling of comments to the Prettier engine. Two line-comments one-after-another seems like a bug in Prettier itself. Though possibly...

Tried upgrading to Prettier 3. Bunch of problems there... but I did find out that it won't fix this comments formatting issue.