Bugs item #1814911, was opened at 2007-10-17 09:31
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1814911&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 0.20
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans (hans_0_)
Assigned to: Peter Boncz (boncz)
Summary: xq: Repeated insert fails (CMDdelete_bat_bun: operation fai)

Initial Comment:
version: Supersource tarball SR3.
Compiled on fedora core 5, 64-bit with 32-bits oid.

While inserting a previously deleted object in a DB, a ERROR: 
CMDdelete_bat_bun: operation failed occurs.
The operation is completed, but raises an error.
I started with a small document "proj.xml", and executed a small script 
"erroneous.xq". The result is enclosed too.

Regards,
Hans van Rijswijk.


[EMAIL PROTECTED] hans]$ cat proj.xml

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project 
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project 
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
 is the hacking case</description></project>
</projects>




$ cat erroneous.xq

pf:add-doc("/home/xiraf/hans/proj.xml", "proj.xml", "proj.xml", 10)
<>
doc("proj.xml")
<>
let $proj := element project {
   attribute name {"consumer02a"},
   element index {"consumer02.xml"},
   element notes {"notes_consumer02a.xml"},
   element description {"Consumer A"}
} return do insert $proj as last into doc("proj.xml")/projects
<>
doc("proj.xml")
<>
do delete doc("proj.xml")/projects/[EMAIL PROTECTED]'consumer02a']
<>
doc("proj.xml")
<>
let $proj := element project {
   attribute name {"consumer02a"},
   element index {"consumer02.xml"},
   element notes {"notes_consumer02a.xml"},
   element description {"Consumer A"}
} return do insert $proj as last into doc("proj.xml")/projects
<>
doc("proj.xml")
<>


$ cat erroneous.xq | /opt/MonetDB-4.18/bin/MapiClient -h uganda -lxq

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project 
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project 
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
 is the hacking case</description></project>
</projects>

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project 
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project 
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
 is the hacking case</description></project>
<project 
name="consumer02a"><index>consumer02.xml</index><notes>notes_consumer02a.xml</notes><description>Consumer
 A</description></project></projects>

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project 
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project 
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
 is the hacking case</description></project>
</projects>

MAPI  = [EMAIL PROTECTED]:50000
QUERY = let $proj := element project {
ERROR = !ERROR: CMDdelete_bat_bun: operation failed.
<?xml version="1.0" encoding="utf-8"?>
<projects>
<project 
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project 
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
 is the hacking case</description></project>
<project 
name="consumer02a"><index>consumer02.xml</index><notes>notes_consumer02a.xml</notes><description>Consumer
 A</description></project></projects>

$

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

>Comment By: Stefan Manegold (stmane)
Date: 2007-10-17 09:40

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

Appears to work fine with the latest CVS code base from the *_?-20 release
branches, i.e., the upcoming release (at least with 64-bit OIDs on my
64-bit FC6 machine):

$ cat /tmp/erroneous.xq | mclient -lxq
<?xml version="1.0" encoding="utf-8"?>
<projects>
<project
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
is the hacking case</description></project>
</projects>

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
is the hacking case</description></project>
<project
name="consumer02a"><index>consumer02.xml</index><notes>notes_consumer02a.xml</notes><description>Consumer
A</description></project></projects>

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
is the hacking case</description></project>
</projects>

<?xml version="1.0" encoding="utf-8"?>
<projects>
<project
name="consumer02"><index>consumer02.xml</index><notes>notes_consumer02.xml</notes><description>aap</description></project>
<project
name="hackingCase"><index>hackingCase.xml</index><notes>notes_hackingCase.xml</notes><description>This
is the hacking case</description></project>
<project
name="consumer02a"><index>consumer02.xml</index><notes>notes_consumer02a.xml</notes><description>Consumer
A</description></project></projects>



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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to