** Changed in: zorba
       Status: Fix Committed => Fix Released

-- 
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 Released

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

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