zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #01982
[Bug 867246] Re: Assertion failed after node delete or replace node
** Changed in: zorba
Status: Fix Released => Fix Committed
** Changed in: zorba
Milestone: None => 2.1
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867246
Title:
Assertion failed after node delete or replace node
Status in Zorba - The XQuery Processor:
Fix Committed
Bug description:
The following query make Zorba crash:
zorba: /zorba/trunksrc/src/store/naive/node_items.cpp:162: zorba::store::Item* zorba::simplestore::XmlTree::getType(const zorba::simplestore::XmlNode*) const: Assertion `theTypesMap != __null' failed.
Aborted
import schema namespace s="http://www.zorba-xquery.org/schema" at "shiporder.xsd";
declare revalidation skip;
variable $x:=validate{
<shiporders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zorba-xquery.org/schema">
<shiporder orderid="889923">
<orderperson>John Smith</orderperson>
<shipto>
<name>Ola Nordmann</name>
<address>Langgt 23</address>
<city>4000 Stavanger</city>
<country>Norway</country>
</shipto>
<item>
<title>Empire Burlesque</title>
<note>Special Edition</note>
<quantity>1</quantity>
<price>10.90</price>
</item>
<item>
<title>Hide your heart</title>
<quantity>1</quantity>
<price>9.90</price>
</item>
</shiporder>
</shiporders>
};
variable $z:=$x/*;
delete node $x/*;
format-number($z,"aa")
I think that the problem is that detach, when the node types are stored in the XmlTree type map, do not copies the types of the detached nodes over to their new tree.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867246/+subscriptions