Skip to content

Fix nested comments, keywords as column names, xml .query(), MERGE USING VALUES - #68

Merged
kyleconroy merged 1 commit into
mainfrom
claude/project-thread-lblh7s
Dec 1, 2026
Merged

kyleconroy merged 1 commit into
mainfrom
claude/project-thread-lblh7s

Conversation

@kyleconroy

Copy link
Copy Markdown
Collaborator

Requested by Kyle · project thread

Fixes the four open issues reported from the sqlc-gen-csharp SQL Server syntax matrix.

Tests

New golden tests (ast.json generated with TsqlAstParser / ScriptDom): NestedBlockComments, NonReservedKeywordsAsColumns, XmlQueryMethod, MergeUsingValues. go test ./parser/... passes; -check-todo enabled no additional tests.

Fixes #64
Fixes #65
Fixes #66
Fixes #67


Generated by Claude Code

…RGE USING VALUES

- Lexer: block comments nest, so /* a /* b */ c */ is one comment (#66)
- Accept non-reserved keywords (MESSAGE, TYPE, QUERY, PASSWORD, ...) as
  column names in expressions, INSERT column lists, SET clauses and as
  method names after a dot (#65, #67)
- MERGE ... USING (VALUES ...) AS alias (cols) parses as an
  InlineDerivedTable (#64)

Golden ast.json files generated with TsqlAstParser.

Fixes #64
Fixes #65
Fixes #66
Fixes #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuRZ4JrivjQabmGfjNqrzq
@kyleconroy kyleconroy self-assigned this Dec 1, 2026
@kyleconroy
kyleconroy merged commit 1c48e5d into main Dec 1, 2026
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

2 participants