Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

Add parsing support for the following T-SQL statements, sorted by test query length:

  • PRINT statement with expression support (integers, strings, binary expressions)
  • THROW statement with optional error number, message, and state parameters
  • ALTER TABLE DROP INDEX statement
  • DROP DATABASE SCOPED CREDENTIAL statement
  • REVERT statement with optional WITH COOKIE clause

New AST types:

  • PrintStatement, ThrowStatement, RevertStatement
  • AlterTableDropTableElementStatement, AlterTableDropTableElement
  • DropCredentialStatement
  • BinaryExpression (for arithmetic expressions like 3 + 5)
  • VariableReference (for @variable references)

Enabled 12 passing tests.

… statements

Add parsing support for the following T-SQL statements, sorted by test query length:
- PRINT statement with expression support (integers, strings, binary expressions)
- THROW statement with optional error number, message, and state parameters
- ALTER TABLE DROP INDEX statement
- DROP DATABASE SCOPED CREDENTIAL statement
- REVERT statement with optional WITH COOKIE clause

New AST types:
- PrintStatement, ThrowStatement, RevertStatement
- AlterTableDropTableElementStatement, AlterTableDropTableElement
- DropCredentialStatement
- BinaryExpression (for arithmetic expressions like 3 + 5)
- VariableReference (for @variable references)

Enabled 12 passing tests.
@kyleconroy kyleconroy merged commit fcf6adf into main Dec 14, 2025
1 check passed
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