go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Problem parsing GOs

Open Sergiomdf opened this issue 8 months ago • 0 comments

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.

Sergiomdf avatar Mar 19 '25 14:03 Sergiomdf