Skip to content

feat(parser): support parenthesized parameter lists in CREATE PROCEDURE - #41

Open
adrpino wants to merge 1 commit into
celsowm:mainfrom
adrpino:feat/proc-parenthesized-params
Open

adrpino wants to merge 1 commit into
celsowm:mainfrom
adrpino:feat/proc-parenthesized-params

Conversation

@adrpino

@adrpino adrpino commented Nov 20, 2026

Copy link
Copy Markdown

Adds support for optional parentheses around parameter lists in CREATE PROCEDURE / CREATE PROC statements (e.g. CREATE PROCEDURE dbo.add_scaled (@A INT, @out INT OUTPUT, @b INT = 10) AS ...).

Changes:

  • Accept parenthesized parameter lists in parse_create_procedure while still rejecting empty () and unmatched parentheses, matching SQL Server grammar.
  • Add integration tests in crates/iridium_core/tests/procedural_edge_cases.rs covering defaults, OUTPUT parameters, CREATE PROC, READONLY TVP parameters, and invalid empty/unclosed parenthesis forms.

Verification:

  • cargo test --workspace (1,389 passed, 0 failed)
  • rustfmt --edition 2021 --check on modified files

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