Bugs item #2908615, was opened at 2009-12-04 08:55
Message generated for change (Comment added) made by floris233
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2908615&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: XML
Group: MonetDB4 "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Floris Ouwendijk (floris233)
Assigned to: Nobody/Anonymous (nobody)
Summary: Not clause breaks result
Initial Comment:
It seems that adding a not clause to a query returns only a single item in the
Nov2009 version (in May2008 SP2 it works).
I have reduced our data to the following testcase:
Insert the following as x.xml into the database:
-----------------------------------------------------
<r>
<a xid='1'><container t='2'/></a>
<a xid='2'><container t='2'/></a>
<a xid='3'><container t='2'/></a>
<a xid='4'><container t='2'/></a>
<a xid='5'><p><x xx='5'/></p></a>
<a xid='6'><p><x xx='6'/></p></a>
</r>
-----------------------------------------------------
The query doc("x.xml")//a[p/x/@xx] returns two elements, while
doc("x.xml")//a[not(xyz) and p/x/@xx] returns a single element.
----------------------------------------------------------------------
>Comment By: Floris Ouwendijk (floris233)
Date: 2009-12-04 08:58
Message:
Addition: it seems that the order is important too:
doc("x.xml")//a[p/x/@xx and not(xyz)] gives the proper result.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2908615&group_id=56967
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs