Bugs item #1640757, was opened at 2007-01-21 13:57
Message generated for change (Comment added) made by stmane
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1640757&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: Wouter Alink (vzzzbx)
Assigned to: Peter Boncz (boncz)
Summary: XQuery: standoff corrupt after update
Initial Comment:
When querying a stand-off document before an update has taken place, everything
seems to be fine:
======================
xquery>pf:add-doc("/home/xiraf/Desktop/test.xml","b.xml",10)
more>xquery>doc("b.xml")
more><?xml version="1.0" encoding="utf-8"?>
<fiets>
<beer end="20" start="10"/>
<noot end="400" start="80"/>
<kees end="110" start="100"/>
<vuur end="90" start="2"/>
<aap/>
</fiets>
xquery>doc("b.xml")//vuur/select-narrow::*
more><beer end="20" start="10"/>,
<vuur end="90" start="2"/>
xquery>
=======================
however, when we first do an update, and afterwards query the document with the
stand-off axis, no results are returned (while there actually should have been
3 results; beer, vuur and test).
========================
xquery>pf:add-doc("/home/xiraf/Desktop/test.xml","a.xml",10)
more>xquery>
more>do insert <test start="5" end="6"/> after exactly-one(doc("a.xml")//noot)
more>xquery>
more>doc("a.xml")
more><?xml version="1.0" encoding="utf-8"?>
<fiets>
<beer end="20" start="10"/>
<noot end="400" start="80"/><test end="6" start="5"/>
<kees end="110" start="100"/>
<vuur end="90" start="2"/>
<aap/>
</fiets>
xquery>doc("a.xml")//vuur/select-narrow::*
more>
xquery>
========================
p.s. latest CVS-head version of MonetDB, running on Fedora Core 6
----------------------------------------------------------------------
>Comment By: Stefan Manegold (stmane)
Date: 2007-01-23 08:38
Message:
Logged In: YES
user_id=572415
Originator: NO
Seems to work fine, now.
Thanks to Wouter for detecting the bug and providing the test.
Thanks to Peter for fixing the bug!
----------------------------------------------------------------------
Comment By: Wouter Alink (vzzzbx)
Date: 2007-01-22 18:30
Message:
Logged In: YES
user_id=621590
Originator: YES
test was already added (see my previous post)
changed status to fixed. i assume the bug can be closed if the testweb is
green tonight.
----------------------------------------------------------------------
Comment By: Peter Boncz (boncz)
Date: 2007-01-22 18:04
Message:
Logged In: YES
user_id=591107
Originator: NO
fixed. forgot one swizzle step from nid to pre (end attributes)
wouter, can you please create a test script for this? thanks
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2007-01-22 11:07
Message:
Logged In: YES
user_id=572415
Originator: NO
assigned to Peter, since he was the last one to change the StandOff code.
----------------------------------------------------------------------
Comment By: Wouter Alink (vzzzbx)
Date: 2007-01-21 16:27
Message:
Logged In: YES
user_id=621590
Originator: YES
test added in tests/StandOff/update with names 'basic*'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1640757&group_id=56967
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs