-
Notifications
You must be signed in to change notification settings - Fork 422
[FORMATTING] GO Statement Before Procedure Declaration #606
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
Comments
Thanks, the fix is now released in 12.2.2 |
Hi, somehow this issue still persists. This is the desired output: USE master;
GO
DROP DATABASE test;
GO
CREATE DATABASE test;
GO
USE test;
GO Yet this is the output: USE master;
GO
DROP DATABASE test;
GO CREATE DATABASE test;
GO USE test;
GO Please address and fix it. I'm using the VSCode extension. My OS is Windows 10. I tested in the website, and it gave the same result: |
Thanks for reporting. The problem here is that this is not really about how the I should point out though that you haven't selected Transact-SQL as the SQL dialect you're formatting (see also the FAQ): ![]() Given the state of Transact-SQL support, this might actually make some things worse. |
After changing the dialect, the result did change, just not in any significantly helpful way. Thanks for the reply though. The result using Transact-SQL: USE master;
GO DROP
DATABASE test;
GO CREATE
DATABASE test;
GO USE test;
GO Desired output: USE master;
GO
DROP DATABASE test;
GO
CREATE DATABASE test;
GO
USE test;
GO |
The fix for the latter has now been released in 15.5.2 |
Input data
Expected Output
The
GO
statement should be on it's own line.Actual Output
When executed on the database a fatal error occurs (
Incorrect syntax was encountered while CREATE was being parsed
) because of theGO
.Usage
The library is being called from a Git hook with the below config:
Transact-SQL/T-SQL
Latest (
v12.2.2
)The text was updated successfully, but these errors were encountered: