Skip to content

Fix handling of stateSep in batch package. Addresses bug #247 #248

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: main
Choose a base branch
from

Conversation

flaviopicci
Copy link

As per the title this patch fixes a corner case in stateSep in batch package, used by batch.Split().
The split shouldn't happen if the separator is immediately followed by a letter, as it might be an identifier or a goto statement.

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.77%. Comparing base (d27f997) to head (fdd234e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
- Coverage   74.91%   74.77%   -0.14%     
==========================================
  Files          32       32              
  Lines        6457     6457              
==========================================
- Hits         4837     4828       -9     
- Misses       1332     1338       +6     
- Partials      288      291       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@flaviopicci
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Collaborator

@shueybubbles shueybubbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@shueybubbles
Copy link
Collaborator

we have a sqlcmd-compatible Batch available in another project: https://github.com/microsoft/go-sqlcmd/blob/main/pkg/sqlcmd/batch.go

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.

3 participants