problems with unordered map
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Undecided
|
Markos Zaharioudakis |
Bug Description
I guess there's a problem with the optimizer.
Try the following code:
import module namespace map = "http://
declare namespace ann = "http://
declare variable $local:
declare %ann:sequential function local:f1($n as xs:string)
{
map:insert(
fn:trace($n, "n=");
for $x in ("1", "2", "3")
return
if(
local:f1($x)
else
()
};
map:create(
local:f1("0")
It should display 0 1 2 3
But it displays 0 1 2 3 3 2 3
Changed in zorba: | |
assignee: | nobody → Markos Zaharioudakis (markos-za) |
Changed in zorba: | |
status: | New → Fix Committed |
milestone: | none → 2.5 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |