Skip to content

Conversation

heppu
Copy link

@heppu heppu commented May 1, 2025

To execute SQL Server schema dumps TSQL / batch support is required. This can be done via go-mssqldb/batch package but sadly it has a bug which causes it to falsely parser part of GOTO statements as GO statements. I have added fix on upstream here.

TODO:

  • Support batch parsing in code level
  • Add query parameter to enable batch paring
  • Add test with GO and GOTO statements
  • Get go-mssqldb/batch fix merged
  • Update go-mssqldb module and remove replace rule
@coveralls
Copy link

Coverage Status

coverage: 56.333% (+0.02%) from 56.314%
when pulling b893b19 on heppu:sqlserver/tsql-support
into 2788339 on golang-migrate:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants