Bugs item #1640757, was opened at 2007-01-21 13:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Nobody/Anonymous (nobody)
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

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

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

Reply via email to