Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ForClause's PositionalVar returns incorrect value on empty sequence when allowing empty #5235

Open
adamretter opened this issue Feb 27, 2024 · 0 comments
Labels
bug issue confirmed as bug
Milestone

Comments

@adamretter
Copy link
Member

The following query in eXist-db returns the wrong result:

for $x allowing empty at $y in ("a", "b", "c")[4]
return
  $x || ":" || $y

The result should be :0, but eXist-db returns :1.

Tested against eXist-db 7.0.0-SNAPSHOT.

@adamretter adamretter added the bug issue confirmed as bug label Feb 27, 2024
@adamretter adamretter added this to the eXist-6.2.1 milestone Feb 27, 2024
@joewiz joewiz changed the title [BUG] ForClaues's PositionalVar returns incorrect value on empty sequence when allowing empty [BUG] ForClause's PositionalVar returns incorrect value on empty sequence when allowing empty Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug
Projects
None yet
Development

No branches or pull requests

1 participant