Project

Profile

Help

Bug #3152

closed

XQ: Collection filtering is wrong inside a loop if GENERATE_BYTE_CODE=off

Added by Petr K over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2017-03-02
Due date:
% Done:

100%

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

Description

if GENERATE_BYTE_CODE=off

following xq loses all but one element - very basic functionality is compromised

let $collection := (,,)

let $ids := ('a','b')

return

{

for $id in $ids

return

	<x id='{$id}'>{ $collection[@attr=$id] }</x>

}

please fix it asap because Bug #3127 needs GENERATE_BYTE_CODE=off as workaround

Please register to edit this issue

Also available in: Atom PDF