Skip to content

Problem parsing GOs #569

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

Open
Sergiomdf opened this issue Mar 19, 2025 · 0 comments
Open

Problem parsing GOs #569

Sergiomdf opened this issue Mar 19, 2025 · 0 comments

Comments

@Sergiomdf
Copy link

Good day,
I've noticed a parsing problem in the execution of scripts containing batch terminators ("GO").

The script I'm trying to run is:

BEGIN TRANSACTION
GO
UPDATE SOME_TABLE SET SOME_COLUMN = 'Some value' WHERE ID = -5737001;
GO
COMMIT

When I execute it using odbc-sqlcmd, it works as expected:
Image

However when I use go-sqlcmd, it fails:
Image

Thank you, and please let me know if you need anything else to reproduce the problem.

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

1 participant