Skip to content

Add support for MS SQL-style IF statements in parser#82

Merged
TylerBrinks merged 1 commit into
TylerBrinks:mainfrom
dogakocak:main
Jun 7, 2026
Merged

Add support for MS SQL-style IF statements in parser#82
TylerBrinks merged 1 commit into
TylerBrinks:mainfrom
dogakocak:main

Conversation

@karmasis-doga-kocak

Copy link
Copy Markdown
Contributor

Extended the SQL parser and AST to handle MS SQL IF statements, including correct parsing and serialization of IF, ELSE IF, and ELSE branches with BEGIN/END blocks. Introduced IfStatementSyntax to distinguish between standard and MS SQL syntaxes. Added a unit test to verify parsing of typical MS SQL IF ... DROP TABLE ... statements.

Extended the SQL parser and AST to handle MS SQL IF statements,
including correct parsing and serialization of IF, ELSE IF, and
ELSE branches with BEGIN/END blocks. Introduced IfStatementSyntax
to distinguish between standard and MS SQL syntaxes. Added a unit
test to verify parsing of typical MS SQL IF ... DROP TABLE ...
statements.
@TylerBrinks TylerBrinks merged commit 06dddfb into TylerBrinks:main Jun 7, 2026
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