Skip to content
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

Feat(tsql): improve support for transaction statements #1907

Merged
merged 20 commits into from
Jul 11, 2023

Conversation

dmoore247
Copy link
Contributor

Enrich syntax parsing for BEGIN, COMMIT and ROLLBACK Transactions.

sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/expressions.py Outdated Show resolved Hide resolved
sqlglot/parser.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/expressions.py Outdated Show resolved Hide resolved
tests/dialects/test_tsql.py Outdated Show resolved Hide resolved
tests/dialects/test_tsql.py Outdated Show resolved Hide resolved
tests/dialects/test_tsql.py Outdated Show resolved Hide resolved
tests/dialects/test_tsql.py Outdated Show resolved Hide resolved
tests/dialects/test_tsql.py Show resolved Hide resolved
@georgesittas
Copy link
Collaborator

@dmoore247 let us know when you push the changes so we can re-review. Thanks for the quick iterations here.

@dmoore247 dmoore247 marked this pull request as draft July 11, 2023 18:56
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Ok I think there are a few comments left and this should be good to go.

sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Show resolved Hide resolved
sqlglot/parser.py Outdated Show resolved Hide resolved
sqlglot/dialects/tsql.py Outdated Show resolved Hide resolved
@georgesittas georgesittas marked this pull request as ready for review July 11, 2023 23:31
@georgesittas georgesittas changed the title feat TSQL Transaction enhancement Feat(tsql): improve support for transaction statements Jul 11, 2023
@dmoore247
Copy link
Contributor Author

@georgesittas Looks like I resolved all the issues.

@georgesittas georgesittas merged commit e6b3a01 into tobymao:main Jul 11, 2023
@dmoore247 dmoore247 deleted the transactions branch July 13, 2023 02:56
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