Skip to content

Add tsql/batch support for sqlserver #1270

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
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants