** 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.

  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.

  import schema namespace s="http://www.zorba-xquery.org/schema"; at 
  declare revalidation skip;

  variable $x:=validate{
  <shiporders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      <shiporder orderid="889923">
          <orderperson>John Smith</orderperson>
              <name>Ola Nordmann</name>
              <address>Langgt 23</address>
              <city>4000 Stavanger</city>
              <title>Empire Burlesque</title>
              <note>Special Edition</note>
              <title>Hide your heart</title>
  variable $z:=$x/*;
  delete node $x/*;

  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:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to