Bugs item #1871789, was opened at 2008-01-15 09:35
Message generated for change (Comment added) made by tsheyar
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
>Assigned to: Jan Rittinger (tsheyar)
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 }
}
----------------------------------------------------------------------
>Comment By: Jan Rittinger (tsheyar)
Date: 2008-01-15 11:39
Message:
Logged In: YES
user_id=993208
Originator: NO
Fixed in CVS. This bug was due to a bug in the thetajoin optimization
phase.
@Wouter: For our compiler the two queries are different as
'distinct-values($a//d)' is evaluated in different scopes ($a vs $q).
----------------------------------------------------------------------
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