You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Function batch.Split(sqlString, "GO") wrongly splits the sqlString on allgo occourrecnces, even if it's part of a statement, like goto or columns identifiers, like gone.
To Reproduce
Call batch.Split(sqlString, "GO") with an sqlString that has goXXX as identifier on an newline.
E.g.:
Describe the bug
Function
batch.Split(sqlString, "GO")
wrongly splits thesqlString
on allgo
occourrecnces, even if it's part of a statement, likegoto
or columns identifiers, likegone
.To Reproduce
Call
batch.Split(sqlString, "GO")
with ansqlString
that hasgoXXX
as identifier on an newline.E.g.:
Expected behavior
I would expect
statements
from above to be// statements = ["\nselect 1\n", "\nselect\n gone_ts\nfrom t\n"]
Further technical details
go-mssqldb version: 1.8.0
SQL Server version: N/A
Operating system: N/A
The text was updated successfully, but these errors were encountered: