Project

Profile

Help

Bug #1981

closed

GROUP BY for a collection of map fails unless wrapped in a try-catch

Added by Ed Gimzewski over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2014-01-16
Due date:
% Done:

100%

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

Description

As illustrated in the attached file, below works OK if wrapped in a try/catch but fails if unwrapped, with a "local variable $m cannot be allocated a stack frame slot".

let $coll_of_maps := ( map{a":=1,"b":=2}, map{"a":=1,"b":=3}, map {"a":=2,"b":=2}, map {"a":=2,"b":=4},map {"a":=3,"b)

for $m in $coll_of_maps let $a := $m('a') group by $a return map { key":=$a , "members }


Files

group_by_map.xq (918 Bytes) group_by_map.xq Ed Gimzewski, 2014-01-16 01:25
run_saxon_to_screen.text (263 Bytes) run_saxon_to_screen.text Ed Gimzewski, 2014-01-16 11:19

Please register to edit this issue

Also available in: Atom PDF