Bugs item #2869117, was opened at 2009-09-28 21:08
Message generated for change (Tracker Item Submitted) made by vzzzbx
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2869117&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: PFtijah
Group: Pathfinder "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Henning Rode (hrode)
Summary: PF or PF/TIJAH: querying constructed elements
Initial Comment:
Using Aug2009 branch (compiled about a month ago, but seems to persist on
recently compiled Aug2009 code):
The bug was actually found by Eugen. The following query:
(for $query in fn:doc("x")/kaas
let $coll := collection("aap")
let $qid := tijah:query-id($coll, $query)
for $res in tijah:nodes($qid)
return <beer><aap>{$res/text()}</aap></beer>)/aap
fails to compile. The error is:
$ pf test.xq
looking for col: item19, ty: 0x1 in function do_reduce (line 9708)
environment looks like:
col: iter18, type: 0x1, mvar->name: a0016
col: item19, type: 0x200000, mvar->name: a0018
col: item19, type: 0x100000, mvar->name: a0017
fatal error: column 'item19' with type '0x1' not found in environment
# halted in
/home/wouter/workspace_monetdb/MonetDB/pathfinder/compiler/mil/milgen.brg
(env_mvar_), line 695
It seems to be related to PF/TIJAH, but I'm not completely sure.
The query does not fail when rewriting it to an attribute:
(for $query in fn:doc("x")/kaas
let $coll := collection("aap")
let $qid := tijah:query-id($coll, $query)
for $res in tijah:nodes($qid)
return <beer><aap noot="{$res/text()}"/></beer>)/aap/@noot
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2869117&group_id=56967
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs