Project

Profile

Help

Bug #3634

closed

Compile-time stack overflow while optimizing FLWOR expression in XQuery

Added by Michael Kay over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2018-01-19
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

A stack overflow occurs while compiling the following query:

for $x in doc("mondial.xml")//country/name

where some $l in /PLAY//LINE satisfies contains($l,$x)

return $x

The key characteristic is that the where clause has a dependency on the context item which means that naive rewriting of the where clause as a filter predicate is not possible.

Please register to edit this issue

Also available in: Atom PDF