cdml:delete-nodes should only remove root nodes

Bug #867253 reported by Matthias Brantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Matthias Brantner

Bug Description

The following example shouldn't remove the root node from the collection.

>>> variable $n;
>>>
>>> cddl:create(xs:QName("foo:coll"));
>>>
>>> $n := cdml:apply-insert-nodes(xs:QName("foo:coll"), <a><b/></a>);
>>>
>>> fn:trace(fn:count(cdml:collection(xs:QName("foo:coll"))), "#nodes after insert");
>>>
>>> cdml:delete-nodes($n/b);
>>>
>>> fn:trace(fn:count(cdml:collection(xs:QName("foo:coll"))), "#nodes after delete");

Tags: simple-store

Related branches

Changed in zorba:
milestone: none → 2.5
status: New → In Progress
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.