Bugs item #1928084, was opened at 2008-03-28 17:11
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1928084&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: Pathfinder CVS Head
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jan Rittinger (tsheyar)
Assigned to: Peter Boncz (boncz)
Summary: XQ: Ancestor step with debug=10 broken

Initial Comment:
The following query:

doc("foo.xml")//text()/ancestor::b

does return the correct result (<b>textnode</b>) if run with --debug=0. With 
--debug=10 as during testing no results are returned (-- see also 
tests/XQuery/step_attr_nametest).

The problem arises in loop_lifted_ancestor_step_with_nsloc_test().

$ cat foo.xml
<a foo="bar"><b>textnode</b><d><e/><f/></d><c foo2="bar"/></a>

----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2008-05-08 16:14

Message:
Logged In: YES 
user_id=572415
Originator: NO

Is this problem covered by any existing test?
Otherwise, we should consider adding one to monitor the fix ...


----------------------------------------------------------------------

Comment By: Peter Boncz (boncz)
Date: 2008-03-30 01:58

Message:
Logged In: YES 
user_id=591107
Originator: NO

thanks for the bug. turned out to be a very deep MonetDB problem coming
from oids being stored as either int/lng but being treated as unsigned.
Especially nil may cause surprises, since as an oid it seems > 0, however
as a signed integer it is < 0. 

This particular code happened to produce a bat with an oid column starting
with nil. With debug=10, the sorting order would be detected on this
column, such that in the leftfetchjon code a wrong direct oid comparison on
the values was done. One should use ATOMcmp(TYPE_oid,x,y) instead.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1928084&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to