Bugs item #2815820, was opened at 2009-07-02 16:30
Message generated for change (Settings changed) made by tsheyar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2815820&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/runtime
Group: MonetDB4 "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans (hans_0_)
Assigned to: Nobody/Anonymous (nobody)
>Summary: XEndless loop in innocent xquery
Initial Comment:
OS: Fedora core 10
Installed rpms version x.28.4
While executing the innocent looking xquery listed below with mclient the
result is endless.
The message: "!ERROR: xquery_print_result_main: operation failed." is shown
after a while.
When removing one of the two elements within element result the result is
small and as expected.
The situation happened in a real life situation and was reduced to this small
xquery.
let $result :=
<document xid="5">
<folder xid="6">
<file xid="19">
<slack xid="20">
<properties>
<stream xend="507" xstart="544"/>
<streamname>#data</streamname>
<name>aap</name>
</properties>
</slack>
<properties>
<md5>xxx</md5>
<sha1>yyy</sha1>
<stream xend="123" xstart="456"/>
<streamname>data</streamname>
<name>noot</name>
</properties>
</file>
</folder>
<properties>
<type>doc</type>
</properties>
</document>
let $notedobjectsresult := for $notedxid in ("20","5")
return $resu...@xid=$notedxid]
let $subresult := $notedobjectsresult
let $nobj := count($subresult)
let $out := (
for $i in (1 to $nobj)
let $raw := exactly-one($subresult[$i])
return element { name($raw) } {
$raw/properties/(name|stream)
}
)
return element result {
element attributes { for $a in distinct-values(for $j in $out/@* return
name($j)) return element { $a } {} },
element results { $out }
}
<>
Regards,
Hans.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2815820&group_id=56967
------------------------------------------------------------------------------
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs