[Zorba-coders] [Bug 867246] Re: Assertion failed after node delete or replace node

2012-03-25 Thread Markos Zaharioudakis
** 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
  orderpersonJohn Smith/orderperson
  shipto
  nameOla Nordmann/name
  addressLanggt 23/address
  city4000 Stavanger/city
  countryNorway/country
  /shipto
  item
  titleEmpire Burlesque/title
  noteSpecial Edition/note
  quantity1/quantity
  price10.90/price
  /item
  item
  titleHide your heart/title
  quantity1/quantity
  price9.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


[Zorba-coders] [Bug 867246] Re: Assertion failed after node delete or replace node

2011-11-16 Thread Matthias Brantner
** 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
  orderpersonJohn Smith/orderperson
  shipto
  nameOla Nordmann/name
  addressLanggt 23/address
  city4000 Stavanger/city
  countryNorway/country
  /shipto
  item
  titleEmpire Burlesque/title
  noteSpecial Edition/note
  quantity1/quantity
  price10.90/price
  /item
  item
  titleHide your heart/title
  quantity1/quantity
  price9.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