Skip to content

Fix dynamic namespace inheritance in nested query contexts#2643

Merged
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2640
Apr 21, 2026
Merged

Fix dynamic namespace inheritance in nested query contexts#2643
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2640

Conversation

@GuntherRademacher
Copy link
Copy Markdown
Member

The changes made for #2600 caused nested query contexts to incorrectly inherit dynamic namespaces from the parent query. This affected xquery:eval and fn:load-xquery-module.

This change prevents that inheritance for nested queries, while keeping it for xquery:fork-join, by passing the namespace as an explicit parameter to QueryContext constructors.

@ChristianGruen ChristianGruen merged commit 819f1bd into BaseXdb:main Apr 21, 2026
1 check passed
@ChristianGruen ChristianGruen deleted the #2640 branch April 21, 2026 09:46
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