Closed michelmetran closed 3 months ago
Documentation of GO
: https://learn.microsoft.com/en-us/sql/t-sql/language-elements/sql-server-utilities-statements-go?view=sql-server-ver16
This looks interesting... GO
acts as a statement terminator, but according to the docs a semicolon after GO
shouldn't be used. I think that's why the parser is a bit confused here ;)
Describe the bug
When I'm using an "INSERT" preceded by "USE dbname; GO;", typically used in SQL Server, the first INSERT gives an error, being recognized as UNKNOWN .
Example code follows.
Output....
Expected behavior I understand that there is a problem when the INSERT is preceded by tags not recognized by sqlparser (USE, GO)
Versions (please complete the following information):
Additional context Maybe this problem is also related to the issue #727