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

SQL Beautifier doesn't the T-SQL command "GO" on a new line #10

Open
AlexBryson opened this issue Sep 4, 2015 · 1 comment
Open

SQL Beautifier doesn't the T-SQL command "GO" on a new line #10

AlexBryson opened this issue Sep 4, 2015 · 1 comment

Comments

@AlexBryson
Copy link

When using SQL Beautifier, I'm often using T-SQL scripts that end with GO

Unfortunately when I run SQL Beautifier it puts this "GO" on the same line as the previous line of SQL. This breaks T-SQL

MS documentation https://msdn.microsoft.com/en-us/library/ms188037.aspx

"A Transact-SQL statement cannot occupy the same line as a GO command. However, the line can contain comments."

@macinnir
Copy link

macinnir commented Oct 3, 2015

+1 Just ran into this issue.

Related: Not only should there be a new line for the "GO" keyword, but nothing else can be on that line.

-- Throws syntax error
...
GO USE [DATABASE]
GO

-- Should be
...
GO
USE [DATABASE]
GO

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