Skip to content

Conversation

@guan404ming
Copy link
Member

Why

MSSQL supports TRAN as a shorthand for TRANSACTION in BEGIN/COMMIT/ROLLBACK statements, but the
parser did not recognize it.

How

  • Add TRAN variant to BeginTransactionKind enum and the keywords list
  • Accept TRAN alongside TRANSACTION and WORK in BEGIN, COMMIT, and ROLLBACK parsing
  • Add tests for BEGIN TRAN, COMMIT TRAN, and ROLLBACK TRAN

Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
@guan404ming guan404ming closed this Feb 9, 2026
@guan404ming guan404ming deleted the mssql-tran-shorthand branch February 9, 2026 04:44
@guan404ming guan404ming restored the mssql-tran-shorthand branch February 9, 2026 04:46
@guan404ming guan404ming reopened this Feb 9, 2026
@guan404ming guan404ming marked this pull request as ready for review February 9, 2026 04:51
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.

1 participant