Bugs item #1871789, was opened at 2008-01-15 09:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1871789&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/compiler
Group: Pathfinder CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Nobody/Anonymous (nobody)
Summary: XQ: substitution fails
Initial Comment:
The following query did not compile (on a "--nightly=current" build of last
week) using "pf -A"
element { "a" }{
for $a in doc("x.xml")//a
let $m := distinct-values($a//d)
for $q in distinct-values($a//c[d])
for $r in $m
where some $x in $a//c satisfies $x[e/d[contains(.,$r)] and a=$q]
return element { "a" } { $a//c }
}
the query returns: "fatal error: attribute `(NULL)' referenced in selection not
found"
however it does compile if the query is rewritten to: (in which $m is
substituted):
element { "a" }{
for $a in doc("x.xml")//a
for $q in distinct-values($a//c[d])
for $r in distinct-values($a//d)
where some $x in $a//c satisfies $x[e/d[contains(.,$r)] and a=$q]
return element { "a" } { $a//c }
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1871789&group_id=56967
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs