Open ghost opened 2 years ago
This is expected behavior - as the page you linked mentions GO isn’t valid tsql, it’s specific to a few environments.
you mean, that i should expect this to be parsed:
select current_timestamp GO
while this not:
select current_timestamp GO 2
i know where GO is valid, i wonder why Microsoft.SqlServer.TransactSql.ScriptDom supports GO only without its conditional parameter
Steps to Reproduce:
GO: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/sql-server-utilities-statements-go?view=sql-server-ver15
sample parsing code: https://gist.github.com/josef-marec/1a56d2d04418fd749d0285aaaf440253
sample T-SQL:
` select current_timestamp
GO 2 `
Did this occur in prior versions? If not - which version(s) did it work in?
yes