Skip to content

Support SQL Server XML methods on subquery results - #2590

Merged
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/sqlserver-xml-subquery-methods
Sep 11, 2026
Merged

Support SQL Server XML methods on subquery results#2590
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/sqlserver-xml-subquery-methods

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Fixes #386.

With Dialect.SQLSERVER, XML results from parenthesized SELECT ... FOR XML ... TYPE queries now support .value(), .query() and chained method calls, including the reported STUFF query. MethodCallExpression exposes the receiver and existing Function arguments, and shared navigation parsing and rendering keep row navigation, visitors, table discovery and custom deparsing consistent. XQuery strings remain literals.

Validation: full Gradle check (including formatting and static analysis) and Maven verify passed. Regression coverage includes the issue query, AST mutation, visitor context, capability validation, dialect isolation and existing field navigation.

Reference: Microsoft FOR XML TYPE examples.

@minleejae
minleejae force-pushed the fix/sqlserver-xml-subquery-methods branch from ff71ca1 to 038a8b4 Compare September 11, 2026 15:49
@minleejae
minleejae force-pushed the fix/sqlserver-xml-subquery-methods branch from 038a8b4 to 14aedc0 Compare September 11, 2026 15:54
@manticore-projects
manticore-projects merged commit 1515637 into JSQLParser:master Sep 11, 2026
3 of 4 checks 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.

Support for TSQL "STUFF" and "FOR XML PATH" instructions

2 participants