Skip to content

Fix FLWOR flattening with while clause (#2634)#2637

Merged
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2634
Apr 14, 2026
Merged

Fix FLWOR flattening with while clause (#2634)#2637
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2634

Conversation

@GuntherRademacher
Copy link
Copy Markdown
Member

Unlike where, a while clause terminates the entire tuple stream. Flattening such a FLWOR into an outer loop incorrectly terminates that loop too. Fixed by excluding while from the isFLW() guard., and added regression tests.

@ChristianGruen ChristianGruen merged commit daf7444 into BaseXdb:main Apr 14, 2026
1 check passed
@ChristianGruen ChristianGruen deleted the #2634 branch April 14, 2026 15:08
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