Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter breaks T-SQL #93

Open
bowmanjd opened this issue Mar 14, 2022 · 1 comment
Open

Formatter breaks T-SQL #93

bowmanjd opened this issue Mar 14, 2022 · 1 comment

Comments

@bowmanjd
Copy link

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?

@callumvh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants