sqls icon indicating copy to clipboard operation
sqls copied to clipboard

Formatter breaks T-SQL

Open bowmanjd opened this issue 3 years ago • 1 comments

The database connections work very well with Microsoft SQL Server. However, the formatter is unusable. Try formatting a query like SELECT TOP 100 * FROM Table and it doesn't seem to know what to do with TOP.

Is the answer just to disable the formatter in the lsp config, or are there other formatter configuration parameters I have missed?

bowmanjd avatar Mar 14 '22 15:03 bowmanjd

Hi there, I am also having this issue, the following keywords in T-SQL cause issues: WITH TOP ASC

After formatting the document, spaces would be removed before or after these keywords.

Does anybody know if this repo is responsible for formatting T-SQL, or is it denisenkom/go-mssqldb?

callumvh avatar Jun 29 '22 13:06 callumvh