Skip to content

Add check for xml:-prefixed name to DB wildcard nametests#2647

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

Add check for xml:-prefixed name to DB wildcard nametests#2647
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2642

Conversation

@GuntherRademacher
Copy link
Copy Markdown
Member

For wildcard name tests on database nodes backed by DiskData, NameTest.optimize can reduce the test to empty if the local name is not found in the data’s name table. However, names in the xml namespace are stored there with the xml prefix, so a lookup by local name alone does not find them. This change checks for the xml: -prefixed form before optimizing the result to empty.

@ChristianGruen
Copy link
Copy Markdown
Member

Thanks for the immediate fix of this longtime bug.

@ChristianGruen ChristianGruen merged commit 0cec935 into BaseXdb:main Apr 21, 2026
1 check passed
@ChristianGruen ChristianGruen deleted the #2642 branch April 21, 2026 16:20
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